Client Date

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.
Ray TurnerSenior ConsultantAsked:
Who is Participating?
 
Paul JacksonConnect With a Mentor Software EngineerCommented:
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
0
 
Ray TurnerSenior ConsultantAuthor Commented:
Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.