I'm trying to do a system that compare an specific date ($date
) with the atual date (date('Y/m/d')
), but I need to color this $date
when he is one week to the atual date (near the maturity date). I don't know if you can understand me, my english is bad...
Thank you for reading this.
Something like this may work:
You can test it by copying and pasting here http://writecodeonline.com/php/
Ref. PHP - add 1 day to date format mm-dd-yyyy
Ref. How can I check if the current date/time is past a set date/time?