<?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'; }