My question is regarding a dates comparison in Adv...
# general
s
My question is regarding a dates comparison in Advance HTML PDF templates. What is it that I am doing wrong? My code condition : <#assign today = .now /><#if today?date > record.duedate?date> ... remaining code. ~Error I am getting: The template cannot be printed due to the following errors: Error on line 333, column 6 in template. Detail... For "#if" condition: Expected a boolean, but this has evaluated to a date_or_time_or_datetime (wrapper: f.t.SimpleDate): ==> today [in template "template" at line 333, column 11] ---- FTL stack trace ("~" means nesting-related): - Failed at: #if today [in template "template" at line 333, column 6] ---- Please contact your administrator~
t
This is something ChatGPT is excellent at figuring out.
s
tried it already
d
fed it to chatgpt and it missed it. the error is caused by this