have you got access to both servers? Check the regional settings in the
control panel. Make sure webserver is setup the same as the dev server (if
thats the way you want it).

...but, it shouldnt really matter, whenever you use dates and databases
together you should convert the date into ISO format before you insert it
into the database, that way theres no confusion between us/uk formats.

Use this superb function to create an ISO formatted date.
http://www.adopenstatic.com/Resources/Code/FormatDate.asp

HTH
Sam Thompson
----------------------------------------------
2cs Communications Ltd
http://www.2cs.com
[EMAIL PROTECTED]
T: 01473 622263
F: 01473 622515
-----------------------------------------------
----- Original Message -----
From: "Mat Tillett" <[EMAIL PROTECTED]>
To: "ActiveServerPages" <[EMAIL PROTECTED]>
Sent: Wednesday, July 31, 2002 9:34 AM
Subject: Session.LCID probs..


> Hi,
>
> I am having a few probs with the results of Session.LCID.  I am executing
> the following code on both our development server and web server but the
> results that get returned are different.  I am mystified why this is
> happening so a push in the right direction would go a long way to save my
> sanity!
>
> -- CODE --
> <%session.lcid = 2057%>
> UK (en-gb) : <%=date()%>
>
> <br>
>
> <%session.lcid = 1033%>
> US (en-us) : <%=date()%>
>
>
> -- DEV SERVER RESULT --
> UK (en-gb) : 31/07/2002
> US (en-us) : 7/31/2002
>
>
> -- WEB SERVER RESULT --
> UK (en-gb) : 7/31/2002
> US (en-us) : 7/31/2002
>
>
> I have searched in Googles Groups and other people have had the same error
> under the same circumstances, unfortunately I have not yet found the
> solution I am looking for as everyone has advised to use a function to
> format the date.  I have no probs with using a function, but I really want
> an answer why this is not working and not a workaround.
>
> Big Thanks,
>
> Mat.
>
>
> ---
> You are currently subscribed to activeserverpages as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to
%%email.unsub%%
>


---
You are currently subscribed to activeserverpages as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to