How to get only year value in the date field

Hi @chenboly, unfortunately it seems that Enketo (and probably Collect) send the value of 2022-01-01 even if the appearance is set to “year”. You can add a calculate question to format the date and give only the year:

type name label appearance calculation
date date Date year
calculate year format-date(${date}, ‘%Y’)
2 Likes