Last active
May 22, 2021 08:37
-
-
Save ralfebert/2c447fed6a26e1df62371511dd22302e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Format { | |
/// 12.03.2021 | |
static let mediumDate: DateFormatter = { | |
let formatter = DateFormatter() | |
formatter.dateStyle = .medium | |
return formatter | |
}() | |
/// 12.03.2021 12:34 | |
static let mediumDateAndTime: DateFormatter = { | |
let formatter = DateFormatter() | |
formatter.dateStyle = .medium | |
formatter.timeStyle = .short | |
return formatter | |
}() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment