Select to view content in your preferred language

Survey123 date format

3061
5
07-18-2021 10:20 PM
sanio
by
New Contributor

Hi,

Is it possible to change the date format in Survey123 . Now, it is showing as mm/dd/yyyy and I want to change as dd/mm/yyyy.

sanio_0-1626671988024.png

 

 

 

Please suggest

 

Thanks,
Saniul

5 Replies
BrennanSmith1
Regular Contributor

See the format-date capability in Ismael's post here: https://community.esri.com/t5/arcgis-survey123-blog/dates-and-time-in-survey123/ba-p/895528.

It will look something like format-date(${myDateQuestion},'%d/%m/%Y')

0 Kudos
ThomasHamill
Frequent Contributor

Hi @sanio you'll need to add some code under the 'Calculation' column to have the date reformatted.  This thread is a great resource for information about formatting the date and time in Survey123:

https://community.esri.com/t5/arcgis-survey123-blog/dates-and-time-in-survey123/ba-p/895528

Kindest Regards,

t
sanio
by
New Contributor

Hi Thomas,

Thanks for reaching out I Have added the codes in calculation it works fine in connect, but after i publish the form the format doesn't work please go through the attach file.

 

ThomasHamill
Frequent Contributor

Hi @sanio, I have a template in which I use the date format calculation to produce a timestamp that I can use as an ID.

When the date is auto-populated, it still shows up in the live form as something like "Thursday, July 29, 2021," but when the observation is submitted, another field records  the full and reformatted dateTime as "20210729044923."  You can see this in my screenshot under the read-only "Feature Timestamp" field.

Apologies, I'm not exactly sure how to adjust the appearance of the date in the form view unless you do something like I did by printing a read only field just below with the dateTime reformatted as you want it to appear.

ThomasHamill_0-1627563360451.png

 

Kindest Regards,

t
NurhafizhohZainuddin
New Contributor

why my date is in tarate languange?

0 Kudos