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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem with date in ASP - IIS

Status
Not open for further replies.

vikramshenoy

Programmer
Feb 21, 2002
10
IN
Hello all,
The server date setting has been done to UK but when the asp script is run the date function returns value in US format.i tried to change the session.lcid=2057( i.e to "british" in session_on_start sub routine) in global.asa file but it didn't work out. is there any way out other than changing the settings in registry or without changing the existing code a lot.

Thank you in advance.
regards
Vicky
 
Try using '
FormatDateTime formats Date to Regional settings
FormatDateTime(Date, 2)



vbShortDate - 2 Display a date using the short date format specified in your computer's regional settings.

Hope this helps

LK--<
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top