title: Moment JS Date and time to timestamp in moment.js
body: <p>I am getting a text value and it is formatted like this : "9/19/2018 10:00 AM".
  How would you go about turning this into an epoch timestamp using moment.js or just javascript?</p>
  
  <p>EXAMPLE:</p>
  
  <pre><code>console.log(moment('4/17/2018 10:00 AM', 'mm/dd/yyyy hh:mm a').format('x'));
  </code></pre>