HOW TO

Use Arcade Expressions to Reformat a Date in a Dashboards List Element

Last Published: December 29, 2025

Summary

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.

Procedure

In ArcGIS Online or ArcGIS Enterprise, access ArcGIS Dashboard and configure the list element.

  1. Open the ArcGIS Dashboards item in edit mode.
  2. From the List element, hover over Options and click Configure.
  3. Click the List tab and click Enable next to Advanced formatting.
  4. Specify the following code in the Advanced formatting Expression text box:
    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    } }
  1. Add "{expression/Date}" into the Template text box.
  2. Click Done.

Article ID: 000037608

Software:
  • ArcGIS Online
  • ArcGIS Enterprise
  • ArcGIS Dashboards

Get support with AI

Resolve your issue quickly with the Esri Support AI Chatbot.

Start chatting now

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Start chatting now

Go to download options