title: Compare current date with date written from text file is less than one week
body: <p>I am reading from a text file line by line, in each line is formated like</p>
  
  <pre><code>05/20/2014 10:18:28 am
  
  m/d/y h:m:s
  </code></pre>
  
  <p>How can I compare this with current date and select dates that are not less than one week?
  This is what I have done so far but I'm wondered if there is any other easier way:</p>
  
  <pre><code>$arr = explode(' ',trim($line));
  $fword = explode("/", $fword);
  $fword =  $arr[0];
  list($m,$d,$y) = explode("/", $line);
  mm= date('m');
  dd = date('d');
  </code></pre>
  
  <p>By the way, I am writing to text file in this format:</p>
  
  <pre><code>$date = date('m/d/Y h:i:s a', time());
  </code></pre>