title: Javascript equlivent to .Net TimeZoneInfo.ConvertTimeBySystemTimeZoneId
body: <p>In .Net I can use the following to figure out what time it is in a specified timezone:</p>
  
  <pre><code>var targetDate = TimeZoneInfo.ConvertTimeBySystemTimeZoneId(DateTime.UtcNow, "Atlantic Standard Time");
  </code></pre>
  
  <p>I've been trying to figure out a way to do this in Javascript, but so far no luck. I was able to find the following: <a href="http://www.techrepublic.com/article/convert-the-local-time-to-another-time-zone-with-this-javascript/" rel="nofollow">http://www.techrepublic.com/article/convert-the-local-time-to-another-time-zone-with-this-javascript/</a> which has some details, if I can specify an offset, but I cant seem to figure out how to get that from a specified timezone (from the currentTimezone its as easy as <code>myDate.getTimezoneOffset()</code>).</p>
  
  <p>Again in .Net I could do this with:</p>
  
  <pre><code>TimeZoneInfo tzi = TimeZoneInfo.FindSystemTimeZoneById("Atlantic Standard Time");
  TimeSpan offset = tzi.GetUtcOffset( myDateTime);
  </code></pre>