I have the following string and I want to convert it to Date:
"November 8, 2018 12:30 PM"
What I am doing is the next:
let dateFormatter = DateFormatter()
dateFormatter.dateFormat = "MMM d, yyyy h:mm a"
let date = dateFormatter.date(from: "November 8, 2018 12:30 PM")
But I am getting
2018-11-08 18:30:00 +0000
and I don't know why. Any tip for this?