Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date format

Status
Not open for further replies.

Maki9

Programmer
Oct 22, 2003
4
ZA
I'm trying to format date to dd/mm/yyyy but i'm failing..
Sql server view dates as dd/mm/yyyy but when i display the dates from the database they appear as mm/dd/yyyy so is you have the answer please reply... everytime i pass a parameter i always get an error..
 
You can use this way. Should work in any case.
Code:
myDate=rsSql("mydate")
myNewDate=Day(myDate)&"/"&Month(myDate)&"/"&Year(myDate)

________
George, M
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top