Validating date entry

Adding this line should solve your issue:

In the survey tab of your XLSForm:

Data entry screen as seen in Enketo: when a wrong entry is made

Data entry screen as seen in Enketo: when a correct entry is made

Reference XLSForm:

Calculate Age.xlsx (9.9 KB)