[thelist] ASP: Getting client's time and date

Michael Galvin mpgalvin at eircom.net
Thu Jul 27 15:59:30 CDT 2000


I have an ASP page being hosted on what I found out yesterday was an
American server.  In this page, I'm using the NOW function to keep a log of
when users log in, and then telling them next time (just in case somebody
else got in since).  It's very basic security.  However, since the server is
located in the States, the time is coming out 5 hours behind Irish time.  I
could add 5 hours manually, but this excludes anybody logging in from
outside Ireland.

So is there any way of getting the client browser's time and date?  I could
use the javascript client-side script to determine it, but I have no idea
how to integrate JS and ASP.  Can variables initialised and set within JS be
used outside (it needs to be written to an Access database).  My ASP script
is VBscript, in case that makes any sort of difference.

Any thoughts?
Michael





More information about the thelist mailing list