Alex Rivera | Logout

How to get client date and time in ASP.NET?

Asked 2008-11-08T15:25:32.523
24

When I use DateTime.Now I get the date and time from the server point of view. Is there any way to get the client date and time in ASP.NET?

Edit
Report

1 Answer

0

The alternative is to geolocate the user based on his/her IP address. Or geolocate if the browser has this capability (coming soon for Firefox). Once you have the user's location you can lookup the timezone.

The javascript solution is probably a good and easy one.

answered 2008-11-08T15:30:03.433

Your Answer