[thelist] Getting the US date using VBScript....

Mark Anderson marke.anderson at btinternet.com
Fri Sep 6 16:59:00 CDT 2002


Can't you use the LCID function in the language directive at the top of the
ASP page? This converts the page format to whatever style you want (I
generally use it to convert to UK style from US style :) )

<%@LANGUAGE=VBSCRIPT" LCID=2057%> in my case converting to UK, Microsoft
have a complete list on there website.

Mark Anderson
01202 775483
07802 404838 mob
Web Development and database design
mailto:mark at anderson.uk.com
http://www.anderson.uk.com


-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Thomas Granger - TK -
Filter
Sent: 06 September 2002 22:44
To: thelist at lists.evolt.org
Subject: [thelist] Getting the US date using VBScript....


Evening All!

I need to be able to get the US format date in client
side script on a non us client with VB Scrip.

The VB function I am trying to use is GetDate, but it
is returning the locale date and I need it to return
the US date. (talking about format)

I've searched for some examples...but just cannot
figure out how to compare two dates and force it to
return it as one single format, English/US date
format.

Thoughts? Clever ways of doing this client-side?

Thanks,

Tom





__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com
--
For unsubscribe and other options, including
the Tip Harvester and archive of thelist go to:
http://lists.evolt.org Workers of the Web, evolt !




More information about the thelist mailing list