Microsoft IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsSystem AdministrationMicrosoft IIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old February 15th, 2006, 04:15 AM
Adnan77 Adnan77 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2006
Posts: 9 Adnan77 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 1 m 50 sec
Reputation Power: 0
Question IIS seems to have forgotten what the British/en-GB date format is!

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

Reply With Quote
  #2  
Old February 15th, 2006, 06:43 PM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 23 h 19 m 36 sec
Reputation Power: 181
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

Reply With Quote
  #3  
Old February 16th, 2006, 04:40 AM
Adnan77 Adnan77 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2006
Posts: 9 Adnan77 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 1 m 50 sec
Reputation Power: 0
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.

Reply With Quote
Reply

Viewing: ASP Free ForumsSystem AdministrationMicrosoft IIS > IIS seems to have forgotten what the British/en-GB date format is!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT