title: Convert UTC to local time Javascript
body: <p>I'm trying to convert UTC time to local time, but the below code is not working. What's wrong in it?</p>
  
  <pre><code>var parsedStartDateTime = 
               new Date(moment.unix(parseInt(data['StartDateTime'].substr(6)) / 1000));
  var startDateTimeMoment = 
               moment.tz(parsedStartDateTime, tzName);
  var formatted_date = 
               startDateTimeMoment.format("MMM DD YYYY h:mm:ss A");
  </code></pre>