Find the year of a date entered in a field

Hi all,

I am looking for a function that will give me the year for a date that was entered in a field. For instance if I enter a date (format MM-YYYY), how I get the year (YYYY) from this field.

Many thanks,

Hello @lazasoa,
You can find it in the XLSForms Specification (as all functions):
https://getodk.github.io/xforms-spec/#fn:format-date

2 Likes

Thanks a lot @wroos

1 Like