how do to date validation using objective c 开发者_高级运维
Have you read the "Date and Time Programming Guide"?
In short you have a bunch of options:
- NSDateFormatter
- General string handling (e.g., pick out the first four characters for the year)
- NSDateComponents
But without knowing more about your problem it's difficult to be very specific, hence my suggestion that you read the manual first.
精彩评论