title: I cannot calculate date more than 5 years ahead?
body: <p>I need to show a message if the end date is before the start date.</p>
  
  <p>The code is working, but if I put the end date more than 5 years before the start date. The code did nothing.</p>
  
  <p>I donot know way. that's weird?</p>
  
  <p>Here is my code</p>
  
  <pre><code>         if(isset($_POST['Submit'])) 
          {
              $startdate  = $_POST['start'];
  
          $enddate=$_POST['end'];
      if(abs(strtotime($enddate ) &lt; strtotime($startdate)))
            {
  
          ?&gt;
    &lt;table width="767" border="0"&gt;
      &lt;tr&gt;
        &lt;th bordercolor="#CC3300" bgcolor="#CC0000" scope="row"&gt;&lt;div align="left"&gt;&lt;span class="style11 style3"&gt;Warring:&lt;/span&gt;&lt;/div&gt;&lt;/th&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
        &lt;th width="761" bordercolor="#CC3300" bgcolor="#CC0000" scope="row"&gt;&lt;div align="left" class="style3 style11"&gt;The end date you entered is before the start date!!&lt;/div&gt;&lt;/th&gt;
      &lt;/tr&gt;
    &lt;/table&gt;
    &lt;?php
        }
        }
        ?&gt;
  </code></pre>