title: Converting UTC DateTime to Local DateTime in C#
body: <p>I want to show Date &amp; Time of an event which will be managed according to time zone of user. To check time zone I change my system time Zone to another time zone but my code is still getting Local time Zone.
  Here's My code</p>
  
  <p>I am using Cassendra Database and C# .NET MVC</p>
  
  <pre><code>DateTime startTimeFormate = x.Startdate;
  DateTime endTimeFormate = x.Enddate;
  TimeZone zone = TimeZone.CurrentTimeZone;
  DateTime startTime = zone.ToLocalTime(startTimeFormate);
  DateTime endTime = zone.ToLocalTime(endTimeFormate);
  </code></pre>