...

View Full Version : dates



robojob
05-10-2007, 12:44 PM
hi,

i have iis running on win2k3.

when i try to response.write date() it puts it in format mm/dd/yyyy

i need it in dd/mm/yyyy, i have checked that the regional settings are on uk but its still in wrong format.

Any ideas?

Daemonspyre
05-11-2007, 02:18 PM
You said you made sure your server's regional settings are on UK.

What about the LocaleID?


<%

session.lcid=2057

response.write date()

%>

returns 11/05/2007

degsy
05-11-2007, 04:09 PM
or you can create your construct your own date format using the Date/Time and String functions or your own custom function

http://computer-helpforum.com/asp/Dates/date_function.asp?theDay=11&theMonth=5&theYear=2007&theFormat=0&theDelimiter=0&theLeadingZero=1&Submit=Submit



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum