I want add days to a date, I got many codes for this but none of them are working for me below shown is my code,please somebody help me to fix this issue
int
In Swift 2, use extension to extend NSDate:
extension
extension NSDate { func addDays(days:Int) -> NSDate{ let newDate = NSCalendar.currentCalendar().dateByAddingUnit( .Day, value: days, toDate: self, options: NSCalendarOptions(rawValue: 0)) return newDate! } }