title: How to convert windows timezone to moment js timezone
body: <p>i have a dropdown to select timezone in UI. 
  <a href="https://i.stack.imgur.com/NgRpe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NgRpe.png" alt="enter image description here"></a>
  that dropdown data taken from windows timezone settings dropdown list
  <a href="https://i.stack.imgur.com/D0kFa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/D0kFa.png" alt="enter image description here"></a></p>
  
  <p>If logged user in selected some timezone, i have to display all datetime fields according to selected timezone format with DST.</p>
  
  <p>My table structure is
  <a href="https://i.stack.imgur.com/njRrl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/njRrl.png" alt="enter image description here"></a></p>
  
  <p>Typescript ts code</p>
  
  <pre><code>import * as moment from 'moment';
  import * as momenttimezone from 'moment-timezone';
  
  private ConvertServerTimezoneToClient(dateTime: string, dateFormat: string, timeFormat: string, timezoneFormat: string, isDstzone: string) {
      timeFormat = timeFormat.toString().indexOf('tt') &gt; -1 ? timeFormat.replace('tt', 'a') : timeFormat;
      var convertedTime = '';
      if (timezoneFormat &amp;&amp; timezoneFormat != '' &amp;&amp; timezoneFormat != "null") {
          if (isDstzone == 'true') {
              momenttimezone.tz.add(''); // need to map
              momenttimezone.tz.link(''); // need to map
              var zoneName = ''; // need to map
              var isDstDate = momenttimezone.tz(new Date(dateTime), zoneName).isDST();
              if (isDstDate) {
                  convertedTime = moment(dateTime).zone(timezoneFormat).add(1, 'hours').format(dateFormat + ' ' + timeFormat);
              } else {
                  convertedTime = moment(dateTime).zone(timezoneFormat).format(dateFormat + ' ' + timeFormat);
              }
          }
          else {
              convertedTime = moment(dateTime).zone(timezoneFormat).format(dateFormat + ' ' + timeFormat);
          }
      }
      return convertedTime
  }
  </code></pre>
  
  <p>Moment js have more timezone formats
  <a href="https://github.com/moment/moment-timezone/blob/develop/data/packed/latest.json" rel="nofollow noreferrer">https://github.com/moment/moment-timezone/blob/develop/data/packed/latest.json</a></p>
  
  <p>How to map windows timezone to moment timezone. UI base code is with aurelia typescript. Need help.</p>