In connection with this topic a need arose to compare two time strings in milliseconds. As _DateDiff function does not support millisecond data type, I came up with a UDF based on the original _DateDiff function. #include <Date.au3> $sDate1 = "2019/12/19 23:16:24" $sDate2 = "2019/12/20 23:16:24.02" ConsoleWrite("Difference in seconds: " & _DateDiffEx("s", $sDate1, $sDate2) & @CRLF) ConsoleWrite("Difference in milliseconds: " & _DateDiffE