Working with dates still challenges me
$date1 = date('Y-m-d H:i:s'); // current date
$date2 = X;
I need to know if $date2 is 30 or more days in the future from the
current date.
If $date2 >= $date1 by 30 days
echo 'date2 is more than 30 days in the future';
else
echo 'date2 within 30 days of date1';
^^--- how do I do this comparison?