@christian_silvera, you could use the following constraint as shown in the image below:
In the survey tab of your XLSForm:
Data entry screen as seen in Enketo: accepting 1900-01-01 when a date is unknown

Data entry screen as seen in Enketo: rejecting a date that is above 1900-01-01 and below 2021-01-01
Data entry screen as seen in Enketo: accepting a date that is 2021-01-01 and above

Data entry screen as seen in Enketo: accepting a date that is below or equal to today’s date

Data entry screen as seen in Enketo: rejecting a date that is above today’s date
Reference XLSForm:
Date Constraint.xls (38 KB)


