title: Got nil after string to date convertation
body: <p>I need to convert <strong>String</strong> simular to "2016-07-10T21:32:20G" to <strong>Date</strong>.
  But for some reason I've got only <strong>nil</strong> again and again.</p>
  
  <p>I've read <a href="http://www.codingexplorer.com/swiftly-getting-human-readable-date-nsdateformatter/" rel="nofollow noreferrer">an article about date formater</a>. And unfortunately haven't fount an answer there. I found something in <a href="https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/DataFormatting/Articles/dfDateFormatting10_4.html#//apple_ref/doc/uid/TP40002369-SW13" rel="nofollow noreferrer">the documentation</a>. And documentation tels to read about <a href="http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_Patterns" rel="nofollow noreferrer">Unicode  Date Format Patterns</a>. And it looks similar to mine.</p>
  
  <p><a href="https://i.stack.imgur.com/lJPro.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lJPro.png" alt="enter image description here"></a></p>
  
  <p>Probably I missed something =(</p>
  
  <p>My Code example. Unfortunately always get nil.</p>
  
  <pre><code>let lastUpdatedDateString = "2016-07-10 21:32:20"
  let dateFormatter = DateFormatter()
  dateFormatter.dateFormat = "yyyy-mm-dd hh:mm:ss"
  let lastUpdated = dateFormatter.date(from:lastUpdatedDateString)
  </code></pre>
  
  <p>But this code works fine:</p>
  
  <pre><code>let lastUpdatedDateString = "2016-07-10"
  let dateFormatter = DateFormatter()
  dateFormatter.dateFormat = "yyyy-mm-dd"
  let lastUpdated = dateFormatter.date(from:lastUpdatedDateString)
  </code></pre>
  
  <p>I'm testing it in the playground.</p>
  
  <p><a href="https://i.stack.imgur.com/gNL2y.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gNL2y.png" alt="enter image description here"></a></p>
  
  <p><strong>In fact I must convert this String("2016-07-10T21:32:20G") to Date.</strong></p>
  
  <p>PS</p>
  
  <p>Anyway, thanks for attention =)</p>