Date constraint

What is the problem? Please be detailed.
I want a function that can restrict period for which one can choose a particular year say between 2008 and 2018

What ODK tool and version are you using? And on what device and operating system version?

What steps can we take to reproduce the problem?

What you have you tried to fix the problem?
I have question type being date while appearance is year.
constraint column I have . > 2008 and . < 2019

this doesn't work

Anything else we should know or have? If you have a test form or screenshots or logs, attach here.

1 Like

Greetings @rigs, Constraint for dates is not written like that, I have implemented this example to show you how to do that restrictdate.xls (19.5 KB)