Hi All,
I need to convert the file format from this 2639423_3_30_56 PM_9_4_2020 to 2639423-15-30-56-09-04-2020, can you please help with the powershell command line.Thanks!
$a,$b,$c = '2639423_3_30_56 PM_9_4_2020' -split '(?<=^\d+)_|(?<=\D{2})_' $a + (get-date "$($b -replace '_',':') $($c -replace '_','.')" -f '-HH-mm-ss-dd-MM-yyyy')