Display client's PC Date & Time

liunx

Guest
I have a asp.net c# web form, when the page load I want to display client computer date and time.I used DateTime.Now.Date() for this. it works well in the localhost, but after I deployed in the web server it displays web server date and time.how can I display client's computer date and time?It worked well on localhost because your browser as the client and the server were on the same box and therefore had the same time. If you want to show the clients time, you are going to have to use javascript.
 
Back
Top