title: Convert uncommon String date/time data to DateTime data type
body: <p>I'm trying to implement a PowerShell script to compare DateTime from certificate file(Jave Keystore).</p>
  <p>However, the DateTime format that I extract from keystore file is quite complex as example below.</p>
  <p><strong>Mon Mar 13 06:40:26 CDT 2023</strong></p>
  <p><strong>Sat Sep 18 20:41:47 CDT 2027</strong></p>
  <p>It includes time and timezone in the String but <strong>I actually need only date like 13-Mar-2023</strong>.</p>
  <p>Could anyone help suggest how I return this String to be DateTime for comparison?
  Thanks a lot.</p>