I have a site and I need to pass in the clients date and time I am using the Now() function but when I display it on the screen it is giving me the servers time. Is there a way I can get the users local time????
I tried solving this problem but cant get it right through the server. I even wrote a time region convertor but it was too buggy. Thus I use javascript with a hidden textbox.
Works great.
The way it work is, java gets time/date from user computer. Puts it into the hidden textbox.
Since the hidden textbox is a server control, now asp.net can grab it and put it into a string variable or something.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.