How do we validate two dates in KoBoToolbox where the difference should be in between 3 to 6 months?

I am working on a form for capturing farmer practices.
One of the questions is about planting date and date of harvesting. The date of harvesting should between 3 - 6months of planting. How do I validate this on the form?

Hi @holiance,

Welcome to the community! You could do the same as shown in the image below:

In the survey tab of the xlsform:

Reference xlsform:
Date Calculation.xls (33 KB)

GOOD DAY!

Alternative way to restrict harvesting date Date Calculation v2.xls (63 KB)

1 Like

thanks, it works

1 Like

This option is even better. I don’t have to create questions. Much appreciated

1 Like