HOW TO
Arcade expressions can be used for dynamic calculation and formatting within list elements in ArcGIS Dashboards. The following outlines how to set up an expression to convert and reformat a date field from the Configure options of a list element.
In ArcGIS Online or ArcGIS Enterprise, access ArcGIS Dashboard and configure the list element.
var OriginalDate= $datapoint.DateReported
var UTCDate= ChangeTimeZone(OriginalDate, 'UTC')
var FormattedUTCDate= Text(UTCDate, "ddd DD MMM YYYY, hh:mm a")
return {
textColor: '',
backgroundColor: '',
separatorColor:'',
selectionColor: '',
selectionTextColor: '',
attributes: {
Date: FormattedUTCDate
}
}
Article ID: 000037608
Get help from ArcGIS experts
Start chatting now