A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
Hi Darren,
Thanks for posting back.
I'm glad to know you have resolved the problem. Regarding your new question, I think you want to make the background color of cells with 01/01/1900 values gray.
If not, please point it out and let us know.
If so, I suggest you try the following JSON code. This will display the background color of the cell in question as gray and the text color as black.
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json",
"elmType": "div",
"style": {
"background-color": "=if(toLocaleDateString(@currentField) == '01/01/1900', 'grey', '')",
"color": "=if(toLocaleDateString(@currentField) == '01/01/1900', 'black', if(@currentField <= @now, 'red', if(@currentField <= @now + 1209600000 && @currentField > @now, 'orange', 'green')))",
"font-weight": "=if(@currentField <= @now, 'bold', if(@currentField <= @now + 315576000000 && @currentField > @now, 'bold', 'green'))",
"font-size": "=if(@currentField <= @now, '14px', if(@currentField <= @now + 315576000000 && @currentField > @now, '14px', 'green'))"
},
"txtContent": "@currentField"
}
We look forward to your response. Thanks for your cooperation. 😊
Sincerely,
George | Microsoft Community Moderator