title: Convert 12-hour format to 24-hour format in C#
body: <p>How to convert 12-hour format to 24-hour format in <code>DateTime</code> format.</p>
  
  <p>I already tried to convert the <code>DateTime</code> to string (24-hour format) and convert it back to <code>Datetime</code> format but it is not working.</p>