Hi there,
How can I check if the date and time that the user selected in a form has already past? I tried but I can't do it.
I really appreciate if you can help me.
I seed mktime with the users date/time info and compare it to mktime().... That is pretty much the easiest way I know.
<? $user_date = strtotime ($user_date); $current_date = time ();
if ($user_date < $current_date) { echo "This date is in the past"; } ?>