AnsweredAssumed Answered

How to define Date/Time’s format in the Label with ArcGIS API for JavaScript 4.x

Question asked by rchueh on Jul 29, 2019
Latest reply on Jul 30, 2019 by rchueh

Hi,

 

In the JavaScript 3.x, the LabelClass class has a properties called fieldInfos, and within the fieldInfos object, I can specified how Time field is displayed in the label by setting format properties to “{ dateFormat:  “shortDate”}.    However, in the Javascript 4.x, there is no fieldInfos properties, therefore I am unable to format the Time value to the format I wanted.  

 

How can I define Date/Time’s format in the Label?  Or, is there a global setting for configuration the Date/Time format in Javascript 4.x?

 

 Any help would be appreciated.

Roman

Outcomes