Date has wrong format Swift

I think you can convert year.text!+month.text!+day.text! to this:

"\(year.text!)-\(month.text!)-\(day.text!)"

Leave a Comment