title: Finding the Date id Future or Not
body: <p>I need to find the date is expired or not.</p>
  
  <p>Here is my Date. But it was not working for me,</p>
  
  <pre><code>$ActualDate    = "2013-03-19 05:05:23";
  $ExpiryDate    = "2013-04-18 05:05:23";
  
  $elapsedTime = new DateTime($ActualDate);
  $now         = new DateTime($ExpiryDate);
  echo ($now &lt; $elapsedTime ? 'Future' : 'Past');
  </code></pre>
  
  <p>I cant get the accurate result... if any one knows this, please post a answer it will helpful for me.</p>