Comparing dates and dates
I have datetime-row in mysql database. I need to check the time between this date and the date using php. If the range is more than 1 month, do something.
I've tried something like this:
$dateFromMysql = strtotime($rowData);
$currentDate = date("m/d/y g:i A");
And then contemplation with hands. It's ugly.
+2
a source to share
2 answers