; AZJIO ; http://www.autoitscript.com/forum/topic/139213-datediff-2/ ; #include <_DateDiff_2.au3> #include <Date.au3> $Old = '2011.03.12.00.00.00' $Old = StringRegExp($Old, '(\d+)', 3) $New = _NowCalc() $New = StringRegExp($New, '(\d+)', 3) $sCompare = _DateDiff_2($Old, $New, 0) If @extended Then $sCompare = '-' & $sCompare MsgBox(0, 'Message', $sCompare) ; ===========================