Skip to content

DateFormatter

Ken Harris edited this page Dec 23, 2017 · 1 revision

This returns a localized string, according to the system locale. If the application isn't localized, this will look out of place. Set f.locale = Locale(identifier: "en_US") to use English. Other parts of the stdlib/OS that do this: DateComponentsFormatter; MapKit (no workaround?).

Clone this wiki locally