title: Converting a String to a Date in Swift
body: <p>I have date in string with format below code want to change in <code>Date</code>
  but i'm getting <code>nil</code></p>
  
  <pre><code>let addedDate = "Tue, 25 May 2010 12:53:58 +0000"
  let formatter = DateFormatter()
  formatter.dateFormat = "dd MM YYYY"
  let date1 = formatter.date(from: addedDate)
  print("DATE \(date1)")
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/vGSjI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vGSjI.png" alt="enter image description here"></a></p>