Hi all, I have a short expression written to symbolize my points by last edit date when they are updated in the field. I'm also trying to symbolize by the year each point was created, which is specified in one my fields. So what I'm trying to do is have each year be assigned a color, i.e. 2017 = yellow, 2018 = purple, 2019 = orange, and then have all three years change to one uniform color once they are edited by our field staff. Here's what I have to change symbology by date edited. Any suggestions for including year edited in this?
var water_date = $feature.EditDate;
var days_dif = DateDiff(Now(), water_date, "days");
var result = "water status";
if (days_dif <= 14) {
result = "Complete";
} else if (days_dif > 14) {
result = "Needs Water";
}
return result;Thanks!