Function for date variable

im looking for a function that find the find the number of days that have passed from date to date like daydif() also
function that fine the date() now in the computer

For the current date you can use the Now variable: [[Now]]

To get the number of days since an earlier date you can do:
[[(Now.valueOf() - Date.parse(‘1/31/2018’).valueOf()) / 1000 / 60 / 60 / 24]]

Note the American date format mm/dd/yyyy in the parse call

tanks תודה
itws help me