Date
public extension Date
The Date extension
-
Declaration
Swift
enum DateFormatMode
-
Formats date to string
Declaration
Swift
func formatDateToString(dateFormat: String) -> String
Parameters
dateFormat
format of the date
Return Value
formatted date in string
-
Returns 1st day of the month
Declaration
Swift
func firstDayOfMonth() -> Date
Return Value
1st day of the month
-
Format date
Declaration
Swift
func format(for formatMode: DateFormatMode) -> String
Parameters
formatMode
format date/datetime
Return Value
formatted date