Skip to content

Instantly share code, notes, and snippets.

@Wooder
Created October 19, 2018 08:31
Show Gist options
  • Save Wooder/79a0a547b42600c08a8671e74b3cebb4 to your computer and use it in GitHub Desktop.
Save Wooder/79a0a547b42600c08a8671e74b3cebb4 to your computer and use it in GitHub Desktop.
Swift and Date
Date in current timezone as string:
let longDateString = Date().description(with: .current)
let shortDateString DateFormatter.localizedString(from: expiryDate, dateStyle: .medium, timeStyle: .short)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment