title: Can't convert string to Date object
body: <p>I have a date string generated from a <code>UIDatePicker</code>, after the user chooses a date from the picker, the date is converted to a string and shown in the <code>UITextField</code> I have a button, that when is clicked, I want to check if the Start date is more recent than the End date, which in that case to show an alert with error.
  The problem is, I can't convert my date string to a date object.</p>
  
  <p>This is my code:</p>
  
  <pre><code>internal func handleSubmit() {
      dateFormatter.dateFormat = MY_DATE_FORMAT
      guard let startString = self.mView.startDateTextField.text else { return }
      guard let endString = self.mView.endDateTextField.text else { return }
  
      guard let start = dateFormatter.date(from: startString) else { return } //&lt;--- Returns here
      guard let end = dateFormatter.date(from: endString) else { return }
  
      if checkDate(startDate: start, endDate: end) {
          //TODO: This is ok, move the another screen.
      }else {
          //TODO: Show error.
      }
  }
  </code></pre>
  
  <p><code>MY_DATE_FORMAT</code> is a simple string <code>"dd MM yyyy"</code></p>
  
  <p>The reason I don't take the date straight from the UIDatePicker is that I would need to check if I'm using the <code>Start or End UITextField</code> and I don't really want to put an if statement inside the valueDidChange method I have for the DatePicker, so I thought about convertring the string back to date.</p>
  
  <p>The string shows like "July 19, 2019" and I guess 'July' is the problem but I can't really tell as I'm relativly new to Swift.</p>