Hello could you please validate the code?
I am getting some errors.
:local myfunc [:parse [/system script get date_compare source]];
:put [$myfunc date1=“dec/31/2018 09:00:00” date2=“jan/01/2018 09:30:00”]The script gets into an infinite loop
:local myfunc [:parse [/system script get date_compare source]];
:put [$myfunc date1=“jan/01/2018 09:00:00” date2=“jan/02/2018 08:30:00”]The script returns -1 days 00:30:00