Last active
October 28, 2016 12:27
-
-
Save michaelevensen/a2771d6f54048dc5eaeec211191bc42d to your computer and use it in GitHub Desktop.
Simple way of formatting a date.
This file contains hidden or 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
// Date format | |
let dateFormatter = DateFormatter() | |
dateFormatter.dateFormat = "dd. MMMM" | |
// Output current date in format | |
dateFormatter.string(from: Date()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment