Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php check if date is bigger than today

<?php
 $date_now = date("Y-m-d"); // this format is string comparable

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