Skip to content

Instantly share code, notes, and snippets.

View tmdvs's full-sized avatar
:shipit:
making things and breaking things

Tim Davies tmdvs

:shipit:
making things and breaking things
View GitHub Profile
@MattCheetham
MattCheetham / DeathToTimezones.swift
Last active March 7, 2017 12:25
Swift date formatting
//: Playground - noun: a place where people can play
import UIKit
/// We're working with appointments.
/// So I get this string from the server and in some places I need to display it in the users local timezone and in other places I need to display it as the time and date that it was booked
var serverTimeString = "2017-03-21T19:00:00-07:00"
let localisedDateFormatter = DateFormatter()