开发者

Current date with the selected date to be passed

开发者 https://www.devze.com 2023-03-02 23:41 出处:网络
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 webservic

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

精彩评论

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

关注公众号