Forum Discussion
SharePoint List color rows based upon date ranges relative to the Due Date
- Jan 12, 2021
For SharePoint 2013, you can use Client Side Rendering (CSR) which represents a rendering engine for list views.
You can refer the code samples given in below links and modify it according to your conditions:
- How to highlight the row in red if expiration date is passed for SharePoint 2013 list
- SharePoint 2013 on-prem conditional formatting row by dueDate
Please click Mark as Best Response if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
You can easily achieve this using SharePoint JSON View formatting.
You need to use additionalRowClass to highlight the row based on conditions. Check my answers given at below links. It should help you to get started with it:
- Need Help with “Format View” feature in Modern List based on Condition
- color formatting a date column - Refer the date conditions to check how you can use "@now" in JSON
Please click Mark as Best Response if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.