Restricting Date to last 4 years

Hallo Group,

I have a survey in which I want to restrict years which respondents can mention. Specifically 4 years back. The variable type is date. How do I construct the constraint.

Just to clarify, I was handed the files today, the scripting person dropped out and I don’t have knowledge on ODK.

Kindly assist