Im trying to compare two strings which contain date information in the format "yyyy-mm-dd hh:mm:ss tt"
this is the code
I want to use a 12h format but _dateDiff seems to ignore that and assumes 24h, depending on the time i will somethimes get negative values and other times positive.
how do i force it to look at the am - pm part?
this is the code
$pcdate = _Now() ConsoleWrite($tdate & " " & $pcdate & @CRLF) $DateCalc = _DateDiff('s', $tdate, $pcdate) ConsoleWrite($DateCalc & " " & $tdate & " " & $pcdate & @CRLF)
I want to use a 12h format but _dateDiff seems to ignore that and assumes 24h, depending on the time i will somethimes get negative values and other times positive.
how do i force it to look at the am - pm part?