Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

check if date has passed php

$date = new DateTime($event['date']);
$now = new DateTime();

if($date < $now) {
    echo 'date is in the past';
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #date #passed #php
ADD COMMENT
Topic
Name
5+2 =