Skip to content

Instantly share code, notes, and snippets.

@suraphanL
Created October 5, 2016 16:43
Show Gist options
  • Save suraphanL/bd29049f3863c67086faac844df87246 to your computer and use it in GitHub Desktop.
Save suraphanL/bd29049f3863c67086faac844df87246 to your computer and use it in GitHub Desktop.
let myLocale = Locale(identifier: "th_TH")
let dateFormatter = DateFormatter()
dateFormatter.dateStyle = .full
dateFormatter.timeStyle = .full
dateFormatter.locale = myLocale
let date = Date()
let stringFromDate = dateFormatter.string(from: date)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment