I\'m going mad with, probably, a stupid problem.
I have 3 strings: year, month and day. I need to have a date in the right format based on currentLocale, so i.e. if curr
In Swift 3:
let formatter = DateFormatter() formatter.dateStyle = .medium formatter.timeStyle = .none formatter.locale = Locale.current let date = Date() let dateString = formatter.string(from: date) print(dateString)