开发者

Current date with the selected date to be passed

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);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜