         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 {

        ]

        self.sessionManager = SessionManager(configuration: configuration)
    }

    public func projects(handler: @escaping APIType.ProjectsHandler) {

import Runes

public protocol APIType {
    typealias DaysHandler = (_: Result<[Model.Day], API.Error>) -> Void
    typealias DayHandler = (_: Result<Model.Day, API.Error>) -> Void
    typealias ProjectsHandler = (_: Result<[Model.Project], API.Error>) -> Void
    typealias UserHandler = (_: Result<Model.User, API.Error>) -> Void

    func days(from: Date, to: Date, handler: @escaping APIType.DaysHandler)
    func day(at date: Date, handler: @escaping APIType.DayHandler)
    func projects(handler: @escaping ProjectsHandler)
    func user(handler: @escaping UserHandler)
}

extension API {
