Generate the date by days difference

//eg: 7 days before
NSDate *sevenDaysAgo = [[NSCalendar currentCalendar] dateByAddingUnit:NSCalendarUnitDay value:-7 toDate:[NSDate date] options:0];

results matching ""

    No results matching ""