title: Date Format in Swift
body: <p>How will I convert this datetime from the date?</p>
  
  <blockquote>
    <p>From this: 2016-02-29 12:24:26<br>
     <strong>to: Feb 29, 2016</strong></p>
  </blockquote>
  
  <p>So far, this is my code and it returns a nil value:</p>
  
  <pre><code>let dateFormatter = NSDateFormatter()
  dateFormatter.dateFormat = "MM-dd-yyyy"
  dateFormatter.timeZone = NSTimeZone(name: "UTC")
  let date: NSDate? = dateFormatter.dateFromString("2016-02-29 12:24:26")
  print(date)
  </code></pre>