Arcade Date expression for symbology in ArcGIS Pro 2.2.0

1471
2
Jump to solution
06-29-2018 08:06 AM
BruceAnderson1
New Contributor II

Arcade Date expression for symbology in ArcGIS Pro 2.2.0

I'm trying to use an Arcade expression to symbolize data based on a date field. I want to display records for each Year/Month combination. the expression verifies and seems to work but if I look at the counts for the year/month groupings they are off by one month. e.g. the number of records for 2018/5 are showing as 2018/4. Any idea what might be causing this? 

here is the expression that I'm using: 

Year($feature.observation_date) + "/" + Month($feature.observation_date)

0 Kudos
1 Solution

Accepted Solutions
KenBuja
MVP Esteemed Contributor

From the documentation: Date Functions | ArcGIS for Developers 

Returns the month of the given date. Values range from 0-11 where January is 0 and December is 11.

View solution in original post

2 Replies
KenBuja
MVP Esteemed Contributor

From the documentation: Date Functions | ArcGIS for Developers 

Returns the month of the given date. Values range from 0-11 where January is 0 and December is 11.

BruceAnderson1
New Contributor II

Thank you. 

0 Kudos