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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP Date Format Problem

Status
Not open for further replies.

justinpl

Programmer
Nov 20, 2003
19
0
0
US
I am trying to format my date variable as mm/dd/yyyy which is standard for the function FormatDateTime(Now(), 2). The problem is when the date is 11/05/2003 this function will strip down to 11/5/2003, which is incorrect when doing a greater than or equal to statement.

Ex: 11/5/2003 >= 11/12/2003 YES
11/05/2003 >= 11/12/2003 NO

I am not finding anything where I can set the format to be mm/dd/yyyy manually. In Cold Fusion I can do DateFormat(Now(), 'mm/dd/yyyy') and be done with it. Seem ASP is alot trickier.

Please help!!!!
 
faq333-3194

_____________________________________________________________________
onpnt2.gif
[sub]
Hakuna matata!!
[/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top