I want to display data int the next format: 14:23 Sep 10,2012
.How can I do this?
Use NSDateFormatter
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
[dateFormatter setDateFormat:@"hh:mm MMM dd,yyyy"];
NSString *stringFromDate = [dateFormatter stringFromDate:[NSDate date]];
NSLog(@"today : %@", stringFromDate);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With