views:

91

answers:

1

how do to date validation using objective c

+1  A: 

Have you read the "Date and Time Programming Guide"?

In short you have a bunch of options:

  1. NSDateFormatter
  2. General string handling (e.g., pick out the first four characters for the year)
  3. NSDateComponents

But without knowing more about your problem it's difficult to be very specific, hence my suggestion that you read the manual first.

Stephen Darlington