Forum Discussion

alandarr's avatar
alandarr
Brass Contributor
Apr 10, 2020
Solved

Quick JSON formula question regarding date plus 365

I am trying to format a column to change color if TODAY is greater than the date entered, plus 365 days. It's basically to show a color for expiration of date entered. Below is what I was trying to figure out, but this doesn't work. Thanks!

 

 

{
  "schema": "https://developer.microsoft.com/json-schemas/sp/view-formatting.schema.json",
   "additionalRowClass": "=if(@now()+365 > [$COLUMN_x0020_NAME], 'sp-field-severity--severeWarning', '')"
}

 

 

 

 

 

 

 

10 Replies

Resources