getting client date/time from request

  • Thread starter Thread starter wapsiii
  • Start date Start date
W

wapsiii

I have a form in which users must enter date and time. The users are
spread out over several timezones and I'd like to load the form with
the date/time of the current user. How do I get the date/time of the
user's client?
 
Of course. Thanks. Here is what I did:

' set default from time to client's current time
If (Not Me.IsStartupScriptRegistered(STR_DefaultFromDateScript))
Then
Me.RegisterStartupScript(STR_DefaultFromDateScript, "<script
language=JavaScript>d=new Date();document.forms[0].txtFromTime.value =
getHHMM(d,'hh:mm');</script>")
End If
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top