title: Convert string to Date() with dateFormatter
body: <p>I'm trying to convert from string date (&quot;Apr 19, 2020&quot;) and between today's date format (Date() just the format)
  this is the code that I used to convert.</p>
  <pre><code>/// Create String
                      let string = (dict[&quot;Birthday&quot;] as? String)!
                      // Create Date Formatter
                      let dateFormatter = DateFormatter()
                      // Origin date &quot;Apr 19, 2020&quot;
                      dateFormatter.dateFormat = &quot;MMM d, YYYY&quot;
                      // Convert String to Date format 2020-04-19
                      print(dateFormatter.date(from: string))
  </code></pre>
  <p>but when I run it I get totally different date..
  2021-04-29 22:20:53.888471+0300
  is there someone that can help me with this?
  P.S how to remove the unnecessary parts and to leave just the date?
  Thank you!</p>