How to get the client timezone id for c# timezoneinfo class from client side using javascript
<p>I want to get client timezone id from JavaScript  to parse c# TimezoneInfo class.And Convert to utc time.And I have this  </p>

<pre><code>var timezone = String(new Date());
return timezone.substring(timezone.lastIndexOf('(') + 1).replace(')', '').trim();
</code></pre>

<p>Problem is some time it will javascript timezone return CST. Is there a proper way to get timezone id </p>

<p>and from the c# </p>

<pre><code>TimeZoneInfo ZoneInfo = TimeZoneInfo.FindSystemTimeZoneById(timeZoneIdFromJavascript);
return TimeZoneInfo.ConvertTimeToUtc(Datetime, ZoneInfo);'
</code></pre>