Skip to main content
Question

Filter last year's worth of data

  • March 27, 2026
  • 1 reply
  • 9 views

brittzucchetto
Contributor
Forum|alt.badge.img+4

I have an AGOL feature layer with a DateOnly field that I am trying to filter out the last 365 days worth of data. Is there an easy way to complete this?

The data is formatted in the following way:

2021-01-01

1 reply

crutledge
Influencer
Forum|alt.badge.img+45
  • Influencer
  • March 27, 2026

Hi ​@brittzucchetto 
You could use a tester or filter and use the DateTimeDiff() function to calculate the time interval in days and then filter greater than / less than 365.
Hope that helps!