I’m pulling my hair out on trying to get a set of date conditionals to work. How can I check for a custom date field that’s not set to anything? I’ve tried converting and comparing to 0, I’ve tried comparing to an empty string, etc.
e.g. {if "{app_enddt format='%U'}” > “31536000”}
when I output the value of the field the result appears blank, but what is the real value?
Also, the parsing issues in EE are making me batty as well.
Statements like: {if ("{current_time format='%U'}” > “{rel_dt format='%U'}”) AND (”{current_time format='%U'}” < “{app_enddt format='%U'}”)}
are being parsed too late - any solutions/known issues? I may be overlooking something silly.
objective: what I’m trying to do is check to see if a date value is even set, if it isn’t my status is: continuously open. If a date is set, then I need to make sure that current time is in between an arbitrary starting date and that set date. If so, then my status is currently open, otherwise it’s currently closed. All dates are custom fields and I’m comparing with current time.