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
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
Best answer by crutledge
Hi
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!

No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.