In my app I have to show Date & Time Like this,
10/19/2011 3pm
Currently I write this code,
NSDateFormatter *formatar=[[NSDateFormatter alloc] init];
[formatar setDateFormat:@"MM/dd/YYYY HH:mm a"];
[formatar setTimeStyle:NSDateFormatterShortStyle];
NSString *st=[formatar stringFromDate:[NSDate date]];
But Getting date in this format:
10/19/2011 15.00
So, How can i get that in this 10/19/2011 3pm Format?