Monday, December 6, 2010

Formatting Dates (UK, USA)

CDATE does *NOT* return *any* date format!

CDATE *accepts* a date in the current settings.

FormatDateTime will *format* per the current settings.
Or just converting any date to a string via Response.Write or CSTR( ) will do so.

BUT...But that is *not* necessarily the "Regional Settings" on your machine! It is the settings *of the Web Server* that matter.

And to change that, you use
Session.LCID = &H0409 ' for USA
Session.LCID = &H0809 ' for U.K.
To see other LCIDs (and there are dozens!), do this:
(1) Google em!

No comments: