; AZJIO
; http://www.autoitscript.com/forum/topic/139213-datediff-2/
#include <_DateDiff_2.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 @error Then Exit MsgBox(0, 'Сообщение', '@error = ' & @error)
If @extended Then $sCompare = '-' & $sCompare
MsgBox(0, 'Разница в датах', $sCompare)