This C# code DateTime.Now; notes server time and this code DateTimeKind.Utc; notes the zone but displaying this to other counties at their own zone is not being possible with this. How to display time according to the clients time zone?
This C# code DateTime.Now; notes server time and this code DateTimeKind.Utc; notes the zone
Share
ASP.NET code works on server, so of cause it shows SERVER time.
If you need to get client time, it is the client how shound send this information to you.. at least the TimeZone where the client is located.
One of the suggested ways is to have hidden field on a form that would contain client time:
As soon as form submitted on server, you will get client time;