#AutoIt3Wrapper_Au3Check_Parameters=-q -d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 -w 7 #include #include "_DateDiffAsApproxString.au3" Global $sDateOld, $sDateNew While True $sDateNew = _NowCalc() $sDateOld = _DateAdd('s', -Random(1, 60 * 60 * 24 * 31 * 12, 1), $sDateNew) If MsgBox(5, '_DateDiffAsApproxString() Example', 'Older Date:' & @TAB & $sDateOld & @LF & 'Newer Date:' & @TAB & $sDateNew & @LF & @LF & 'Date Difference:' & @TAB & _DateDiffAsApproxString($sDateOld, $sDateNew)) <> 4 Then ExitLoop WEnd