I am wondering what would be the best date and time format that php can compare later to other dates?
I am trying to do 3 things. Get the date and time, Add 24 hours to the date and time, and later compare that number to the current date and time to verify t has not been 24 hours.
//GET CURRENT DATE AND TIME
$date = date('m/d/Y h:i:s a', time());
//ADD 24 HOURS
$end_date = $date + 24;
//LATER COMPARE THE CURRENT DATE AND TIME TO MY END_DATE
if (date('m/d/Y h:i:s a', time()) > $end_date){
ehco "YOU ARE PAST YOUR TIME";
}else{
echo "still time left";
}