Welcome to the community, @Bushra! You could do it as outlined in the image shared below:
In the survey tab of your XLSForm:
In the choices tab of your XLSForm:

Data entry screen as seen in Enketo: when the date is within the range
Data entry screen as seen in Enketo: when the date is outside the range
Reference XLSForm:
Constraint.xlsx (12.3 KB)



