Join Slack
Communities
Powered by
Is there a way to get the difference of .now and {...
# advancedpdf
j
JM
05/27/2022, 3:34 PM
Is there a way to get the difference of .now and {duedate}?
m
michoel
05/28/2022, 9:35 AM
https://stackoverflow.com/a/11418693/1568948
j
JM
05/30/2022, 9:00 AM
Hi
@michoel
, may current data is : ${line.duedate}. can you teach me how i can convert my data into ISO format?
JM
05/30/2022, 9:02 AM
if you could check my code
JM
05/30/2022, 10:17 AM
right now. i tried this: <#assign differenceDate = ((.now?long - .now?long)/(1000*60*60*24))?int>
JM
05/30/2022, 10:18 AM
and is working.
JM
05/30/2022, 10:18 AM
but when i change it into <#assign differenceDate = ((.now?long - line.duedate?long)/(1000*60*60*24))?int>
JM
05/30/2022, 10:19 AM
the printing page displays error message
JM
05/30/2022, 10:22 AM
message has been deleted
m
michoel
05/30/2022, 11:18 AM
You can try using ?date builtin to convert duedate to a date
3
Views
Open in Slack
Previous
Next