how to check if a date is three days before today
date, datetime, php
Solution
Just check it with timestamp:
if (time() - filemtime($testfile) >= 3 * 86400) {
// ...
}
Problem
Hey i would like to know if there is any script (php) that could check if a specified date three days before today. say.. ``` $d1 = date("Y-m-d", filemtime($testfile)); $d2 = date("Y-m-d"); ``` now i would like to know how to compare this two dates to check if d1 is atleast 3days ago or before d2 any help would be gladly appreciated.