title: Swift date formatting
body: <p>I'm trying to pull a date string from a button and format is as a date to be store in CoreData. </p>
  
  <p>Here is my code:</p>
  
  <pre><code>let dateStr = setDateBTN.titleLabel?.text
  let dateFormatter = NSDateFormatter()
  dateFormatter.dateFormat = "MM-dd-YYYY"
  let date:NSDate = dateFormatter.dateFromString(dateStr!)!
  </code></pre>
  
  <p>If I do a println on dateStr I get the following: <code>03-10-2015</code>. Then if I immediately println on date I get: <code>2014-12-21 05:00:00 +0000</code>.</p>
  
  <p>Any ideas as to why the actual date is changing when I run it through the date formatter?</p>