Created
March 1, 2017 08:13
-
-
Save PhilippeBoisney/53ab429bd37bfe1778e4668971ae6bd7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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