...

View Full Version : FormatDateTime



landon11
02-19-2003, 09:32 PM
How do I format date "mm/dd/yyyy" I am using FormatDateTime(now(), vbShortDate) but it returns 2/19/2003 instead of 02/19/2003

whammy
02-20-2003, 12:04 AM
mystring = Right("00" & Month(Now()),2) & "/" & Right("00" & Day(Now()),2) & "/" & Year(Now())

Response.Write(mystring)

landon11
02-20-2003, 02:03 PM
Great, thanks.
I was kinda hoping there would be something similar to in VB:
Format(now(), "mm/dd/yyyy")



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum