I would like to subtract 4 hours from a date. I read the date string into an NSDate object use the following code:
NSDateFormatter * dateFormatter = [[[NSDat
//in Swift 3 //subtract 3 hours let calendar = NSCalendar.autoupdatingCurrent newDate = calendar.date(byAdding:.hour, value: -3, to: originalDate)