Solved

Client Date

Posted on 2014-03-03
2
187 Views
Last Modified: 2014-03-11
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.
0
Comment
Question by:Ray Turner
2 Comments
 
LVL 29

Accepted Solution

by:
Paul Jackson earned 500 total points
ID: 39902066
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
 

Author Closing Comment

by:Ray Turner
ID: 39922191
Thanks
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question