Operations with Dates

Hello,

Im trying to make a substraction with two dates one save on my table by a form and the other one the date of the system, the result that im looking for is the difference on days for example system_date= 16.06.2015 , table_date= 10.06.2015 the result should be 6 days.

I will use the macro sc_date_dif in the even onAplicationInit, but how i pass as a parameter the system date?

Can you help me?

Thank you!!:wink:

See there:

http://www.scriptcase.net/forum/showthread.php?8938-Strange-behavior-of-sc_date_dif-macro&highlight=date_diff

jsb