How to convert a datetime to specific timezone in c#?
<p>I need help converting a <code>DateTime</code> to a specific time zone. What I have below is not working correctly.</p>

<p><code>gmTime</code> = <code>03/02/2013 1:00:00 AM</code> </p>

<pre><code> TimeZoneInfo timeZone = TimeZoneInfo.FindSystemTimeZoneById("Eastern Standard Time");
 var time = timeZoneInfo.ConvertTime(gmTime, timeZone);
</code></pre>

<p>When I debug the value of <code>time</code>, which should be <code>03/01/2013 8:00:00 PM</code> when the zone is applied, it comes back as <code>03/02/2013 1:00:00 AM</code>. </p>

<p>If I do <code>time.ToLocalTime()</code> then I get the correct value. However, I need to convert <code>time</code> to different time zones. </p>
