Hi,
I would like to format my date/time labels in ArcGIS Online for a map but I can't seem to get the date/time field to display with an AM or PM afterwards.
I would like my field called assessment_date to display labels like this: 29 Oct 2023 - 8.35 AM
The following Arcade statement in my label expression does work but it doesn't show the AM or PM:
Text($feature["assessment_date"], 'DD MMM YYYY - h:mm')
I have tried Text($feature["assessment_date"], 'DD MMM YYYY - h:mm tt') thinking this would add the AM PM but it just displays as 29 Oct 2023 - 8.35 tt
Any ideas?
Thanks very much,
Solved! Go to Solution.
Alter your expression to this
Alter your expression to this
Thanks very much Russ! That works perfectly.
It would be great if that could be added to the online help files (if not already there). I couldn't see any reference to it in: https://doc.arcgis.com/en/arcgis-online/manage-data/work-with-date-fields.htm but it is referred to in the ArcGIS Online Dashboards documentation I see now.