I am new in iphone, i want to change string into accurate date-formate which i couldn\'t done this for last 2 hrs. I have string like(17:30 18 Oct) and want to convert this in a
Try this
NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init]; [dateFormat setDateFormat:@"hh:mma dd/MMM"]; NSString *dateString = [dateFormat stringFromDate:today]; NSLog(@"date: %@", dateString); [dateFormat release];