I have a php event\'s calender which queries the database to get the dates.
I display the event date using:
$event[\'date\']
and t
You can use strtotime() and time():
if (strtotime($event['date']) < time()) { // past date }