title: How to format a Date to a specific format on Swift4?
body: <p>I must format a object created by <code>Date()</code> to a especific format, this format must show the date like:</p>
  
  <p><code>28 may, 2018 11:00:32</code></p>
  
  <p>I've a func to make the formatation of <code>Date()</code>, but to the follow format:</p>
  
  <p><code>yyyy-MM-dd HH:mm:ss</code></p>
  
  <p>Function working:</p>
  
  <pre><code>static func dateFormatTime(date : Date) -&gt; String {
          let dateFormatter = DateFormatter()
          dateFormatter.dateFormat = "yyyy-MM-dd HH:mm:ss"
          return dateFormatter.string(from: date)
      }
  </code></pre>
  
  <p>But I don't know how make on this format: <code>dd MMM, yyyy HH:mm:ss</code></p>