Jump to content

check if a date is 10 days beyond another date


jeff5656

Recommended Posts

I want to see if a date is more than 10 days overdue.

 

if ($row['duedate'] < "todays date plus 10 days"){

 

How do I do that?  I put in quote sup there in "english" what I want...

 

Assuming $row['duedate'] is a DATE or DATETIME format:

 

if (strtotime($row['duedate']) < strtotime("+10 days")) { ... }

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.