Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Wrong Date format using IIS 5

Status
Not open for further replies.

smurf01

IS-IT--Management
Jul 6, 2002
470
GB
Hi, I was wondering if there are any Guru's out there that can help me, I have set up IIS on a machine at work to run some intranet pages however I find that the dates when shown in the browser are in US format even though the lacale settings are set to UK. I have browsed the web and found the following code:

Code:
sub session_onStart()	session.lcid = 2057 ' Set locale to United Kingdom
end sub

However being a complete novice I have no way of knowing wher this code needs to be placed in order for it to work.

I have found a workaround at the moment but it involves putting the following code at the top of my ASP pages

Code:
<%
'Set the server locale
Session.LCID = 2057
%>

however this means that I have to remember to put it in all pages that use dates & times, I would really like to set up IIS so that i do not have to do this every time.

Any help would be appreciated [ponder] [ponder] [ponder]



Regards

Paul
 
Hi Smurf

What exactly do you need to do this for...? Are you dragging the dates out through log files...? Through ASP results regions...?

I accept that my srever uses US date format but simply get my database to convert it to UK.




-----------------
Cogito Ergo Sum
-----------------
 
Harlequin007,
My database is also set up to use UK dates but the output through IIS5 to the asp pages converts them back. i have been on Microsoft web site and they acknoeledge this as a problem and suggest using the LCID to overcome it. However because i am a complete novice when it comes to IIS i am struggling to work out where to put the code.
I found some information on it at the following web site

And also in this microsoft knowledge base article

264063

Regards

Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top