I have an HTML table containing a list of due dates. I would like the background colour of the cell to change depending on the difference between the due date and today's date:
Black - due date has passed
Red - due date within 30 days
Orange - due date between 30 and 60 days
Green - due date more than 60 days away
What I have tried:
I haven't tried anything worth mentioning because I am unsure how to proceed, hence the question.