|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi,
Dates in my web applications (both classic ASP and ASP.NET) refuse to display in British format. All regional settings on my PC are set to British, as is the LCID (= 2057), and all Windows apps display the date correctly. After searching for any other settings, I came across the IIS Metabase key LM/W3SVC/AspLCID which had a value of 2048, so I changed it to 2057, and this seems to have fixed classic ASP, but has not had an effect on ASP.NET. Interestingly enough, if I set ASP.NET pages to a different culture then it correctly uses the date format for that particular country. It's only when I use en-GB that it ignores the setting and displays the date in American format. It's as if IIS has forgotten what the British standard is! As a temporary fix, I'm using en-IE, but I really need to find out why IIS is not reading the system default format, nor implementing the British format when I explicitly set it. I'd appreciate it if somebody could point me in the right direction. Thanks, Adnan |
|
#2
|
|||
|
|||
|
Are these dates coming from a database query? If so maybe the dbms is set to a different regional setting.
Just guessing, I really don't have any idea and it sounds like you've already looked in the obvious places.
__________________
====== Doug G ====== I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain |
|
#3
|
|||
|
|||
|
The dates were coming from a database when I first noticed that they were formatted incorrectly, but since then I've created test pages using just DateTime.Now etc and that's also displayed incorrectly.
|
![]() |
| Viewing: ASP Free Forums > System Administration > Microsoft IIS > IIS seems to have forgotten what the British/en-GB date format is! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|