Select to view content in your preferred language

Way to get rid of year value in arcade date expression

45
1
yesterday
GeorgeJonesRIGOV
Regular Contributor

Hi all, I'm seeing if it's possible to manipulate a date function so i could use date fields as a range to update the feature each month automatically, and won't have to change the year every time. Here is the code I have so far. 

esriCommQuesiton.png

0 Kudos
1 Reply
DavidPike
MVP Notable Contributor

Arcade has a Month() function.  It returns 1 (Jan) - 12 (Dec).
Date functions | ArcGIS Arcade | Esri Developer
this article should have all the code you need, incl. a dictionary to map the number to the month name.

How To: Extract Month Names from a Date Field Using ArcGIS Arcade in Map Viewer

 

0 Kudos