Date Format

kobocollect

#1

Hi,

While creating the form with the help of “date” field, the date format is “YYYY-MM-DD” by default. so, can we change the format into “DD-MM-YYYY”.
Could you please help me to get the format “DD-MM-YYYY”?

Thanks in Advance!
Keerthi


#2

Take a look at the format-date() XPath function.

For your specific usecase try this:

calculation = format-date(${my_date}, "%d-%m-%Y")