Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

_DateDiff help

$
0
0
Im trying to compare two strings which contain date information in the format "yyyy-mm-dd hh:mm:ss tt"

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?

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>