title: Convert 12hr format to 24 hour format i PHP
body: <p>I am working on a project and i get dates from my IMAP client using imap_headerinfo(). I get 2021 24 02 01:44 when I want it to be 2021 24 02 13:44 aka. 24  hours format. How to I convert this?</p>
  <p>code:</p>
  <pre><code>$header = imap_headerinfo($imap, $result[$i]);
  
  $date = $header-&gt;date;
  </code></pre>