0

When I convert UTC to CST time by using code

DateTime timeUtc = DateTime.UtcNow;
TimeZoneInfo cstZone = TimeZoneInfo.FindSystemTimeZoneById("Central Standard Time");
DateTime cstTime = TimeZoneInfo.ConvertTimeFromUtc(timeUtc, cstZone);

today Feb.27, 2016, the cstTime is in CST (Central Standard Time). But the cstTime will be CST (Central Standard Time) or CDT (Central Daylight Time) when the day is in Daylight Savings Time, for example, May 1, 2016? I check Microsoft's website

https://msdn.microsoft.com/en-us/library/system.timezoneinfo.converttimefromutc(v=vs.110).aspx

But it doesn't mention about this

harmony
  • 1
  • 3
  • how are you getting 10 days out when today is the `17th` not the `27th` – MethodMan Feb 17 '16 at 21:13
  • As an *identifier*, "Central Standard Time" actually means *Central Time (US & Canada)*. Ignore the word "Standard" in the ID - it has no contextual meaning. Also, read [the timezone tag wiki](http://stackoverflow.com/tags/timezone/info), specifically the section on "The Microsoft Time Zone Database". – Matt Johnson-Pint Feb 17 '16 at 23:08

0 Answers0