How can i convert NSString to NSDate?
How can i convert NSString to NSDate?
from these Strings:
NSString *year = @"2010";
NSString *month = @"3开发者_JS百科";
NSString *day = @"12";
to change UIDatePicker.Thanks
NSDateFormatter can turn a string into a date. You create an NSDateFormatter object, set its format using setDateFormat: and then use its dateFromString: method to convert a string into a date.
加载中,请稍侯......
精彩评论