Dates manipulation module

This
http://forum.mikrotik.com/t/time-parsing-in-7-1/154185/1
may simplify everything.