Localization of TimeZone [Resolved]

Posted by Dev080692 under ASP.NET MVC on 12/24/2015 | Points: 10 | Views : 1457 | Status : [Member] | Replies : 1
How to set time of client timezone in asp.net app. I want to set or store time of client timezone on asp.net mvc app.




Responses

Posted by: Rajnilari2015 on: 12/24/2015 [Member] [Microsoft_MVP] [MVP] Platinum | Points: 50

Up
0
Down

Resolved
Try

string zoneID = "India Standard Time";
TimeZoneInfo
.ConvertTimeFromUtc(DateTime.UtcNow, TimeZoneInfo.FindSystemTimeZoneById(zoneID))
.ToString();


Hope this helps

--
Thanks & Regards,
RNA Team

Dev080692, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response