title: Convert Date to String with format "yyyy-MM-dd'T'HH:mm:ssZ"
body: <p>My Swift code:</p>
  
  <pre><code>let format = "yyyy-MM-dd'T'HH:mm:ssZ"
  let dateFormatter = DateFormatter()
  dateFormatter.dateFormat = format
  dateFormatter.timeZone = TimeZone.current
  let date = Date()
  print(dateFormatter.string(from: date))
  </code></pre>
  
  <p>Format of result always such as "2018-04-12T13:33:18+0700"
  Can set result format like "2018-09-19T17:00:00Z"</p>