I'm having trouble figuring the cleanest way to convert a date from one format to the other.
The dates are formatted "Jul 29th, 2021" and I cant change this in the source as its a system output. When I try to convert to datetime it isn't valid.
if anyone has any idea id appreciate it. An example of one of the things i tried is below
$date = "Jul 29th, 2021"
$testConversion = [datetime]$date
$testConversion