Client Date

Ray Turner
Ray Turner used Ask the Experts™
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.
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Software Engineer
Top Expert 2011
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 :
Ray TurnerSenior Consultant



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