Guest User

Untitled

a guest
Oct 12th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. string zoneId = "India Standard Time";
  2. TimeZoneInfo tzi = TimeZoneInfo.FindSystemTimeZoneById(zoneId);
  3. DateTime dt = TimeZoneInfo.ConvertTimeFromUtc(DateTime.UtcNow, tzi);
Add Comment
Please, Sign In to add comment