Is there a way to get the difference of .now and {...
# advancedpdf
j
Is there a way to get the difference of .now and {duedate}?
j
Hi @michoel, may current data is : ${line.duedate}. can you teach me how i can convert my data into ISO format?
if you could check my code
right now. i tried this: <#assign differenceDate = ((.now?long - .now?long)/(1000*60*60*24))?int>
and is working.
but when i change it into <#assign differenceDate = ((.now?long - line.duedate?long)/(1000*60*60*24))?int>
the printing page displays error message
message has been deleted
m
You can try using ?date builtin to convert duedate to a date