Select to view content in your preferred language

Formatting date in Survey123

34220
20
Jump to solution
10-05-2016 01:48 PM
bobwright
Frequent Contributor

Greetings. I've read Ismael's post regarding this, but it doesn't address the specific question I have. I understand that using the type "date" results in 10/5/16 12:00, but I would really like it to be 2016/10/05 12:00 so I can sort properly on them (10/21/16 sorts before 10/5/16 for example). The type "datetime" results in 16/5/10 which doesn't help much either. Changing the date format in the Regional settings of Windows does not help any. Suggestions? Thanks.

Tags (1)
20 Replies
MaureenPeniuk
Deactivated User

Day month year, will work for us for now.

That is better than having the month in the middle at least.

Maureen

0 Kudos
MaureenPeniuk
Deactivated User

Both Canada and South America display as / year month day/ in the form.

In the on-line data table it reverts back to month day year and the am/pm

time.

Maureen

0 Kudos
FRSadmin
Occasional Contributor

Hello,

I am trying to get this to display seconds using `%h:%M:%S` but it will only show seconds as 00 in survey123...

Is there anyway to autofill the seconds part using the now() data?

0 Kudos
VictoriaDavis1
Occasional Contributor

I have a date question appearing as year only which is ${study_year}. The user can select what year the assessment was done in the past.

I want another question that is an integer, and autopopulates like:
int((today() - ${study_year}) div (1000 * 24 * 60 * 60 * 365.25))

 

It works fine in the app but when i publish it, it no longer works? What am I missing?

0 Kudos
SarahWhitton
Emerging Contributor

I am trying to format my date, for example if I select today's date, December 4, 2018 I get 1543899600000. I added a hidden line with a calculation, as follows, format-date(${ReportDate},'%d/%m/%y') . I would like to reference this new formatted date in a calculation, which will produce an email (shown below).

When I insert the hidden line for the format-date, I get an error.

0 Kudos
JamesTedrick
Esri Esteemed Contributor

Hi Sarah,

What is the error that you get after adding the hidden line?

0 Kudos
MichelleWilliamsERM
Frequent Contributor

Is it possible to get this to work? I'm getting the UGLY Number right now: 

MichelleWilliamsERM_0-1630523423797.png

 

typenamelabelcalculation
select_one yes_noBMPsRequiredNew/Additional BMP Needed 
textBMPRepairStatusUGLYBMP Repair Needed Dateif(${BMPsRequired}='Yes', now(), 'None')
textBMPRepairStatusBMP Repair Needed Dateformat-date(${BMPRepairStatusUGLY},'%Y/%m/%d %H:%M')
0 Kudos
AmyHarrigan
Regular Contributor

Is it possible to get the year format in a spinner appearance rather than in a tab to the before or after year?

0 Kudos
JamesTedrick
Esri Esteemed Contributor

Hi Corey,

Can you clarify a little bit?  The year appearance already act much like a spinner appearance:

Are asking for the forward/back areas to be separate buttons?

0 Kudos
AmyHarrigan
Regular Contributor

Suppose I was looking to see if there was a way to display year the same way you would for time.