DateFormatter
public extension DateFormatter
-
Declaration
Swift
convenience init(format: String? = nil, timeZone: TimeZone? = .current, locale: Locale? = Locale(identifier: "en_US_POSIX"))
Parameters
format
The desired format
timeZone
The time zone that will be used
locale
The locale that will be used