Skip to content

Instantly share code, notes, and snippets.

@arturdent
Created March 30, 2016 20:31
Show Gist options
  • Save arturdent/0851bc1c11b5c7ac650afbdaeed890c0 to your computer and use it in GitHub Desktop.
Save arturdent/0851bc1c11b5c7ac650afbdaeed890c0 to your computer and use it in GitHub Desktop.
public var dateFormatter: NSDateFormatter {
let df = NSDateFormatter()
df.locale = NSLocale.currentLocale()
df.timeZone = NSTimeZone(name: "GMT")
df.dateFormat = timeFormat
return df
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment