I want to pass two dates 1st which i will select from the datetime picker & 2nd the current date of the iPhone then开发者_如何学Go what is the process for the current date to pass to the webservice.
You can pass current date as a string through url.
NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
[formatter setDateFormat:@"yy-MM-dd"];
NSString *dateString=[formatter stringFromDate:[NSDate date]];
NSLog(@"Today is %@",dateString);
精彩评论