Sorting array based on date and time with two dictionary keys
问题 I am trying to sort an array based on date and time , I can successfully sort the array based on date both time is coming as another value in dictionary. So date comes as a string in format "yyyy-MM-dd" and time comes in as a string in format "HH:mm" Time value comes in key "starts" as string '"HH:mm"' format. I know somehow I need to combine two strings to 'yyyy-MM-dd HH:mm' but how? -(NSMutableArray *)sortArrayBasedOndate:(NSMutableArray *)arraytoSort { NSDateFormatter *formatter = [