title: Convert 12 hour (AM/PM) string to 24 Date object using moment js
body: <p>I have a output resulting from a timepicker giving 12 hour format of time.</p>
  
  <pre><code>Eg : "1:45 AM (or) "12:15 PM" as **string**
  </code></pre>
  
  <p>Is there a way to parse this string format to 24 hour using moment js back to date object?</p>