Convert date string swift : <p>I have a date string in this format:</p>

<pre><code>2016-06-20T13:01:46.457+02:00
</code></pre>

<p>and I need to change it to something like this:</p>

<pre><code>20/06/2016
</code></pre>

<p>Previously I have always used this library -> <a href="https://github.com/malcommac/SwiftDate/blob/master/Documentation/UserGuide.md" rel="noreferrer">SwiftDate</a> to manipulate the dates, but it doesn't work now.</p>

<p>I tried also something like:</p>

<pre><code>let myDate = self.dateNoteDict[indexPath.row]!
    let dateFormatter = NSDateFormatter()
    dateFormatter.dateFormat = "yyyy-MM-dd hh:mm:ss.SSSSxxx"
    let date = dateFormatter.dateFromString(myDate)
    print("date -&gt; \(date)")
</code></pre>

<p>but it doesn't work. How can I do?</p>

<p>Thanks in advance.</p>
