Hello I am getting time from NSDate like this:
NSDateComponents *hoursAndMinutes = [[NSCalendar currentCalendar] components:NSHourCalendarUnit|NSMinuteCalendarUnit fromDate:feedItem.date];
return [NSString stringWithFormat:@"%d:%d", hoursAndMinutes.hour,hoursAndMinutes.minute];
But if the time from date is 13:05, it shows it like 13:5, and 09:17 like 9:17.
Thanks.
NSDateFormatter will do what you are looking for.