title: How to convert "2017-01-09T11:00:00.000Z" into Date in Swift 3?
body: <p>My problem is that the date is nil.</p>
  
  <p>My code looks like </p>
  
  <pre><code>print(article_date) // output "2017-01-09T11:00:00.000Z" as string
  let dateFormatter = DateFormatter()
  dateFormatter.locale = Locale(identifier: "en_US_POSIX")
  dateFormatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ss.SSS"
  let date : Date? = dateFormatter.date(from: article_date!)
  print("date: \(date)")
  </code></pre>
  
  <p>I've tried a few formatters like "yyyy-MM-dd'T'HH:mm:ssZ", but nothing worked.</p>