Click to See Complete Forum and Search --> : Display client's PC Date & Time


aish
09-17-2005, 05:00 AM
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?

Cstick
09-18-2005, 10:58 AM
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.