Hello,
I have an issue with a constraint on a date field...
This is an incident form, and I cannot have users select a date > today. I also don't want users lying about the date. As such, I set the constraint up as follows:
Type | Name | Calculation | Constraint |
Calculate | today_date_cal | format-date(today(),'%d-%m-%Y') | |
dateTime | actual_date | | ${actual_date_cal}<=${today_date_cal} |
Calculate | actual_date_cal | format-date(${actual_date},'%d-%m-%Y') | |
Obviously, I am trying to strip away the H/m/s component and just compare dates.
Future date = Constraint ACTIVE. Great!
Today = Constraint INACTIVE. Great!
Earlier this month = Constraint INACTIVE. Great!
Anything before this month (e.g., last month) = Constraint ACTIVE. Wut?
So, I am probably missing something very obvious, but I am not sure what that is right now. Any insight?
Thank you.