For Programmers: Free Programming Magazines  


Home > Archive > ASP > September 2004 > Dates









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Dates
John Smith

2004-09-30, 4:44 am

After moving a small web app to Win2k3 / IIS 6 the date is being
displayed as DDMMYYYY, rather than MMDDYYYY. Can I change something in
the regional settings to correct this? Or do I have to change the source?
PW

2004-09-30, 3:55 pm


You have to format the date manually to get what you want. Like this ...

myDate = day(Date()) & "-" & month(Date()) & "-" & year(Date())



Bob Barrows [MVP]

2004-09-30, 3:55 pm

John Smith wrote:
> After moving a small web app to Win2k3 / IIS 6 the date is being
> displayed as DDMMYYYY, rather than MMDDYYYY. Can I change something in
> the regional settings to correct this? Or do I have to change the
> source?


http://www.aspfaq.com/show.asp?id=2313 vbscript
http://www.aspfaq.com/show.asp?id=2040 help with dates
http://www.aspfaq.com/show.asp?id=2260 dd/mm/yyy confusion

Bob Barrows

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com