I have a single ligne column (Called : Next Due Diligence Date) in my sharepoint list where i have a date with "MM-YYYY" format. I want to parse it to "01/MM/YYYY"
For this, I tried the Code below :
$dateString =$IM["Next Due Diligence Date"] $format ="01/MM/YYYY" $start = [datetime]::parseexact($dateString, $format, $null)
I have this Error : Exception calling "ParseExact" with "3" argument(s): "String was not recognized as a valid DateTime."