$end_date){ ehco "Y..." />

PHP date format for comparing date and time?

Now + 1 day (24h) $end_date = strtotime("+1 day"); //LATER COMPARE THE CURRENT DATE AND TIME TO MY END_DATE if (strtotime("now") > $end_date){ ehco "YOU ARE PAST YOUR TIME"; }else{ echo "still time left"; } you can see the reference strtotime If you need to print the value in a readable format you can use the function DATE date("d-m-Y h:i:s",$end_date).

Why not parse the time in to a timestamp, then just compare. There is a magical function called strtotime().

I would recommend using unix timestamps and you can add 24 hours like so: $date = time(); $endDate = mktime(0, 0, 0, date('m'), date('d') + 1, date('Y')); //LATER COMPARE THE CURRENT DATE AND TIME TO MY END_DATE if ($date > $endDate) { ehco "YOU ARE PAST YOUR TIME"; } else { echo "still time left"; } By using timestamps it's just a matter of comparing two integers to see which one is greater than the other.

If you use ISO standard date time, they will sort alphabetically. E.g. : date("Y-m-d H:i:s", $timestamp).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions