Client Date

Ray Turner
Ray Turner used Ask the Experts™
on
Is there a way to get the client date using ASP.NET?  I want to get the date before the 1st page is rendered.  I tried to get the information from the global.asax without success.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Software Engineer
Top Expert 2011
Commented:
As ASP.Net runs on the server side you are always going to get the server date/time rather than the client date/time.

You can get the client time with javascript however :

http://www.codeproject.com/Articles/5290/Displaying-the-client-s-current-date-and-time
Ray TurnerSenior Consultant

Author

Commented:
Thanks

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial