I\'m trying to get current hour minutes and seconds. Here is the code I use
NSDate *now = [NSDate date]; NSCalendar *gregorian = [[NSCalendar alloc]initWithCal
Just doing
NSDate *datenow = [NSDate date];
you will have the current date and time, to generate string representations of a date, you should use an instance of NSDateFormatter.