Subtracting parsed dates question

Hi
I am forced to use 3 variables to subtract a date value stored in a field from <now>

I am doing this because if i do

{{{ [{!!endd}parsedate[unixtime]subtract<now>parsedate[unixtime]] }}} 

the second parse will happen against the output of the subtraction with  < now >unparsed , is there a way to contain the parsing , , like between brackets or something ,which i have tried but didn't work, or is  there any other way to have the full operation contained in one line

<$let 
date1={{{ [{!!endd}parsedate[unixtime]] }}} 
date2={{{[<now>parsedate[unixtime]] }}}
date3={{{[<date1>subtract<date2>] }}} >

thank you for your help

It’s slightly clunky, but {{{ [[3]] [[2]negate[]] +[sum[]] }}} = 1, so I’d think
{{{ [{!!endd}parsedate[unixtime]] [<now>parsedate[unixtime]negate[]] +[sum[]] }}} should work.

2 Likes