Hi Paul Spurr •
Thanks for the post.
You could refer to the following code template:
- Using column formatting in 'Date' column. (Pt1)
- If the 'Date' value is greater than 'deadline' Date + 48 hours, the character turns red.
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "div",
"debugMode": true,
"txtContent": "@currentField",
"style": {
"color": "=if(@currentField>=([$deadline]+(1000*60*60*48)), '#ff0000', ' ')"
}
}
Testingresult:
I hope I can offer you a better experience next time if I have a chance to work with you again.
Yours faithfully,
Renjie Sun
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.