Answers for "c# get datetime timezone"

C#
1

c# get offset from timezone

var offset = TimeZoneInfo.Local.GetUtcOffset(DateTime.UtcNow);
Posted by: Guest on August-12-2020
0

convert datetime to user timezone c#

var utcTime = DateTime.UtcNow; // utc
var localTime = utcTime.ToLocalTime(); // users local time
Posted by: Guest on September-10-2020

C# Answers by Framework

Browse Popular Code Answers by Language