I have published a feature service and a web map in ArcGIS Enterprise that displays several point features.
In the web map, two layers have been created with attributes that also include a date field.
I use this date field to filter for the current year or another year.
In the current environment, the filter must be changed manually every year.
Does anyone know how to filter using a time variable, such as in Arcade or Python?
if ($feature.<date field> != Year(Today())){
return “Incorrect”;}
Translated with DeepL.com (free version)