Select to view content in your preferred language

Is there a way to format how a date value appears in app

72
4
Tuesday
TylerGraham2
Frequent Contributor

Does anyone know if there's a way to format the date field so it shows as something other than the default "Tuesday, October 7, 2025" format?  It takes up too much space for a single column of in a 4 column grid. I want to have the survey display something shorter that will fit in the space, like 10/7/2025 or 7Oct2025. I've tried dropping some date format in the appearance column "dd/mm/yyyy" and "%d/%m/%Y" have not worked.  

0 Kudos
4 Replies
CodyPatterson
MVP Regular Contributor

Hey @TylerGraham2 

In this post here: https://community.esri.com/t5/arcgis-survey123-questions/formatting-date-in-survey123/td-p/851367

There is a suggestion to try something like this: format-date(${myDateQuestion},'%Y/%m/%d %H:%M') with a specific format-date option.

Cody

0 Kudos
TylerGraham2
Frequent Contributor

Sadly, that is for storing data in the feature service and not how it displays in app.  I think this may be a suggestion for esri, since when you have a busy grid based form there isn't a lot of room for wasted space and having a full day of the week and month spelled out wastes a ton of screen space.  

0 Kudos
Neal_t_k
Frequent Contributor

@TylerGraham2 since you want it on the input side, have you considered entering the date as text using an input mask ( and probably a regex) and then converting back to date in using date() in a calculated question. 

Neal_t_k_0-1759871447650.pngNeal_t_k_1-1759871470765.png

 

0 Kudos
TylerGraham2
Frequent Contributor

I'd thought about that, but the calendar is an effective way for the person doing the inspection to quickly input the date (1-2 taps) vs typing it in every time and we use date field multiple times in this form because the prep work for the audits may take multiple days and they need to document the dates for each step was completed in preparation for their audit.  

0 Kudos