how to change string to time with time
i am wring code as but no luck
NSString *comingdate = [sParams valueForKey:@"showdate"];
NSDateFormatter *dateformate = [[NSDateFormatter alloc]init];
[dateformate setDateFormat:@"yyyy-MM-dd"];
NSDate *todate = [dateformate dateFromString:comingdate];
NSLog(@"%@", todate);
/* from showdate i am getting date as yyyy-MM-dd but i awant to convert that string to date with time
can any one give the clue or with clear code
1 Answer