Hi in my application i need to get the hour and minute seperately,
NSString *currentHour=[string1 substringWithRange: NSMakeRange(0,2)]; int currentHourInNumber=[currentHour intValue];
consider string1 contains "11:59:13 AM" which is coming from datepicker.
here if i use above code, its okay to get hour if its greaterthan 9. else i need to change NSMakeRange(0,1) to get hour betwee 1 to 9.
is there any methods to get the hour, minutes ..
Thanks in advance.. please provide me sample code