I am using dateformatter to get days and time in the my application. But I am facing an issue when I change the language of the phone dateformatter returns me day and time of th
Swift
let dateFormatter = DateFormatter() dateFormatter.locale = NSLocale(localeIdentifier: "en_US") as Locale! dateFormatter.dateFormat = "dd-MM-yyyy HH:mm:ss" let resultsDate = dateFormatter.string(from: date)