title: How to format datetime without timezone (Z) using moment.js with AM/PM
body: <p>I am converting DateTime to display <code>YYYY-MM-DD hh: mm a</code> format using moemntjs in my web application but I do not want momentjs to convert or consider timezone. </p>
  
  <p>This is my date <code>2018-12-21T15:58:39.35-05:00</code> returned as part of API and need to display date without (-05:00) in <code>YYYY-MM-DD hh: mm a</code> format.</p>
  
  <p>I am currently doing a workaround as below</p>
  
  <pre><code>var date1 = '2018-12-21T15:58:39.35-05:00'
  var fmtDate = moment.utc(date1).zone("-05:00").format('YYYY-MM-DD hh:mm a');
  
  $('#output').append(fmtDate);
  </code></pre>
  
  <p><a href="https://jsfiddle.net/73pa1qkz/3/" rel="nofollow noreferrer">Fiddle Link</a></p>
  
  <p>Input: '2018-12-21T15:58:39.35-05:00'
  Expected Output: '03:58 pm'<br>
  But I don't want to hardcode zone (<code>-05:00</code>) and moment.js should exclude that in formatting.</p>