title: how to convert 12 hours date and time to 24 hour date and time
body: <p>I have a output resulting from a string giving 12 hour format of date and time</p>
  <p>Eg : &quot;2021-04-16, 5:54 pm&quot; as <strong>string</strong></p>
  <p>Is there a way to parse this string format to 24 hour date and time using moment js.
  so it will look like
  expected output : &quot;2021-04-16 17:54&quot;</p>
  <p>I tried below code but didn't get expected output</p>
  <pre><code>moment(&quot;2021-04-16, 5:54 pm&quot;, 'hh:mm:ss A').format('HH:mm:ss')
  </code></pre>