[SOLVED] Â Turning Row Red after expire date | 
	
									
	2/4/2019 05:29:33 | |
| PHPRunner General questions | ||
| 
	 
		
 I have been trying to figure out the code to turn a row red if the expire date has been met.  | 
	
									
	||
| 
 
 | 
						 
							Sergey Kornilov admin 2/4/2019 | 
| 
 
 That article is old and advise may not apply anymore. But here is the article from the current manual that should work:  | 
											|
| 
 
 | 
						 
							Tandy author 2/4/2019 | 
| 
 
 That article is old and advise may not apply anymore. But here is the article from the current manual that should work: https://xlinesoft.co..._formatting.htm 
 if ($data["date"] < now()) 
 if ($data["date"] < DateTime.Now.Add(-60)) 
  | 
											|
| 
 
 | 
						 
							Sergey Kornilov admin 2/4/2019 | 
| 
 
 DateTime.Now.Add is C# code. You need to search for PHP counterpart.   | 
											|
| 
 
 | 
						 
							Tandy author 2/4/2019 | 
| 
 
 DateTime.Now.Add is C# code. You need to search for PHP counterpart. Comparing dates in PHP: https://stackoverflo...-strings-in-php Subtract days from date in PHP: https://stackoverflo...-date-using-php 
  | 
											|
| 
 
 | 
						 
							Tandy author 2/13/2019 | 
| 
 
 Ok, I don't know if it is right but this code works for me: if ($data["date"] <= date("Y-m-d", strtotime('30 days'))){
  | 
											|