Hi @Ray Shadow ,
As far as I know, JSON formatting will not work in the SharePoint 2016 classic experience, so please confirm that the version of SharePoint you are using is SharePoint 2019. You can refer to this method.
According to my test, you can use the code as below:
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "div",
"txtContent": "@currentField",
"style": {
"background-color": "=if(@currentField <= @now, '#ff0000', if(@currentField >= @now + 2505600000, '#00ff00','#ffff00'))"
}
}
Then the result will be this:
For more information on column formatting of dates, please refer to here.
*
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.