         case .today:
             return "/daily"
         case let .day(date):
-            let day = 1 // calendar.ordinality(of: .day, in: year, for: date)
-            let year = 2017 // calendar.component(.year, from: date)
+            let day = calendar.ordinality(of: .day, in: .year, for: date)!
+            let year = calendar.component(.year, from: date)
             return "/daily/\(day)/\(year)"
         case .addEntry:
             return "/daily/add"
         }
     }
 }
+
+private let calendar = Calendar.current
 
 public enum Model {
     public struct User {

    return rhs.id == lhs.id
}

extension Model.Project {
    public var description: String {
        let billableString = billable ? "Billable" : "Non-billable"

        public let dateString: String
        public let entries: [Entry]
        public let projects: [Project]

        public func date() -> Date {
            return Day.dateFormatter.date(from: dateString)!
        }

        private static let dateFormatter: DateFormatter = {
            let dateFormatter = DateFormatter()
            dateFormatter.dateFormat = "yyyy-MM-dd"
            return dateFormatter
        }()
    }

    public struct Entry {
