NSDate countdown in days
问题 I want to create a countdown of the number of days until a date. I'm not interested in hours or minutes, just the number of days from the current date until the set date. This is what I have been trying: NSDate *date = [NSDate date]; NSString *dateString = [date description]; // this **dateString** string will have **"yyyy-MM-dd HH:mm:ss +0530"** // NSMutableString *mutString = dateString; NSArray *arr = [dateString componentSeperatedByString:@" "]; // arr will have [0] -> yyyy-MM-dd, [1] ->