title: Check to see if NSDate was 6 months ago
body: <p>I've returned a NSDate value back from my server and I need to know how long ago this NSDate was.  I need to write a conditional to see if the date is older than 6 months (in Swift, but I can convert Objective-C).</p>
  
  <p>Here is the NSDate returned, when printed in console: </p>
  
  <pre><code> (2015-09-07 01:22:01 +0000)
  </code></pre>
  
  <p>How do I check if this date above is older than 6 months?</p>
  
  <p>The logic would be something like this:</p>
  
  <pre><code>//dateValue is the NSDate returned
  var dateValue = log.createdAt
      if (dateValue &gt; 6 months){
      }
      else{
      }
  </code></pre>