let lastDay = calendar.rangeOfUnit(.CalendarUnitDay, inUnit: .CalendarUnitMonth, forDate: now).length let components = calendar.components(…, fromDate: now) components.year = 2014 components.month = 8 components.day = lastDay components.hour = 20 components.minute = 25 components.second = 43 calendar.dateFromComponents(components)