title: PHP server side validation of future date in comparison with today's date
body: <p>My database has a column, for example, named </p>
  
  <p><code>expected_event_date</code> data type of which is set to <code>timestamp</code> and it's attribute is <code>CURRENT_TIMESTAMP</code>    </p>
  
  <p>Users input expected future event date through a form.</p>
  
  <p>How shall I validate the future date in comparison with current date in this case? The server should omit an error in case users input past date.</p>
  
  <p>I'm looking for something like,</p>
  
  <pre><code>$error = "invalid date" 
  if ($_POST['expected_event_date'] &lt; today's date only but not time ) {
  echo $error;    
  }
  </code></pre>
  
  <p>Any idea?</p>