Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php check if date is bigger than today

<?php
 $date_now = new DateTime();
 $date2    = new DateTime("01/02/2016");

if ($date_now > $date2) {
    echo 'greater than';
}else{
    echo 'Less than';
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #check #date #bigger #today
ADD COMMENT
Topic
Name
4+5 =