Answers for "c# conver date utc to cst"

C#
1

c# conver date utc to cst

DateTime currentTime = TimeZoneInfo.ConvertTime(DateTime.Now, TimeZoneInfo.FindSystemTimeZoneById("Central Standard Time")); 
Posted by: Guest on December-17-2020
0

c# convert utc to est

var timeUtc = DateTime.UtcNow;
var easternZone = TimeZoneInfo.FindSystemTimeZoneById("Eastern Standard Time");
var today = TimeZoneInfo.ConvertTimeFromUtc(timeUtc, easternZone);
Posted by: Guest on March-21-2020

C# Answers by Framework

Browse Popular Code Answers by Language