Click to See Complete Forum and Search --> : date display


jrthor2
12-09-2003, 10:17 AM
I have a database that stores the dates as a "Short Date" (12/9/2003). When I display the date to a user, I want it to show the actual month name (Ex. December, January, etc). How can I do this?

MichaelM
12-09-2003, 11:07 AM
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/vsfctFormatDateTime.asp

jrthor2
12-09-2003, 11:13 AM
that works, but it is showing the weekday first. I don't want to show the weekday, I just want to show for example December 9, 2003.

MichaelM
12-09-2003, 12:16 PM
dtDate = FormatDateTime(dtDate, vbLongDate)
Response.Write "<HR>" & Mid(dtDate, Instr(1, dtDate,",")+2, Len(dtDate))

jrthor2
12-09-2003, 12:23 PM
thanks, worked like a charm