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

Get the servers regional time setting

Status
Not open for further replies.

robbac

Programmer
Mar 21, 2002
1
0
0
SE
I would like to know if there's a way to, through VB script, to get the webservers time settings.

If I use the function NOW, I'll get the current time of the server. BUT how would I do if I would like to know what timezone the server is at, or the timedifferens according to GMT? +2, +4, -1 and so on.

Would be most greatful to get some info about this.

- Robbac

 
I'm not sure if i understand your question correctly.
if you want to see the time +1, +2 etc just use:
<%=now +(time you want to add%>)

you may also be able to set the LCID, so as to show the visitor settings. for eg:

<%@ LCID = 2057 %>

is the setting for Britain and will also format the date to the format dd/mm/yy.

Hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top