Skip to content

Instantly share code, notes, and snippets.

@PhilippeBoisney
Created March 1, 2017 08:13
Show Gist options
  • Save PhilippeBoisney/53ab429bd37bfe1778e4668971ae6bd7 to your computer and use it in GitHub Desktop.
Save PhilippeBoisney/53ab429bd37bfe1778e4668971ae6bd7 to your computer and use it in GitHub Desktop.
let idDate: Int = Int(time.dayTimePeriodFormatter.string(from: date))!
var title: String = String(fullDate.characters.prefix(1)).uppercased()
let titleEnd: String = String(fullDate.characters.dropFirst())
title.addString(titleEnd)
day = DayModel(id: idOfDay,
idDate: idDate,
title: title,
email: email)!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment