Skip to content

Swift library that provides a set of useful Date formatters

License

Notifications You must be signed in to change notification settings

NikSativa/DateKit

Repository files navigation

DateKit

Swift library that provides a set of useful Date formatters.
There is no longer any need to remember what is different "mm", "MM", "MMM" or "MMMM".

let format: String = "dd MMMM yyyy"
or
let format: DateFormat = [.dayOfMonth2Digits, .t(" "), .monthFull, .t(" "), .year4Digits]

// ------------------------------

let format: String = "MMM dd, EEE"
or
let format: DateFormat = [.monthShort, .t(" "), .dayOfMonth2Digits, .t(", "), .dayOfTheWeekShort]