self.dateTimeFormate = [[NSDateFormatter alloc] init];
    [self.dateTimeFormate setDateStyle:NSDateFormatterShortStyle];

 NSDate *dateTime = [self.dateTimeFormate dateFromString:strPubDateTrim];
    NSString *strPubDateTime = [self.dateTimeFormate stringFromDate:dateTime];

Related posts

Recent Viewed