I am trying to convert the time stamp value of a file to date time for comparing two date time differences.
The data would be coming in format 24122014_022257. I need to convert this into date time so that I can compare the values:
$usdate="24122014_022257"
$dateParts = $usdate -split "_"
$final = $dateparts[0] + $dateParts[1]
How can I do it?