I need help writing an expression to use in ArcGIS online in a hosted feature service for symbolizing forest practice application data.
This is what I need it to display:
If (The effective date plus 6 years)= date before today, Label & Symbol: "6 year moratorium has ended"
If (The effective date plus 6 years)= date after today, Label & Symbol: "Active Permit"
This is the dataset I am using:
https://www.arcgis.com/home/webmap/viewer.html?url=https%3A%2F%2Fgis.dnr.wa.gov%2Fsite2%2Frest%2Fservices%2FPublic_Forest_Practices%2FWADNR_PUBLIC_FP_FPA%2FMapServer&source=sd
I started out writing this, but it isn't correct.
var startDate = $feature["EFFECTIVE_DT"];
var sixyears = DateAdd(startDate,6, 'years')
return sixyears;