currently I have a piece of code that is converting a set of string (eg. 900130) keyed in by user to a date using yyMMdd(Malaysia IC) format. My code for converting the string as follows:
NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init];
date = [dateFormat dateFromString:temp]; // temp = string key in by user
NSDateFormatter assumes 20xx for a 2-digit year if the year is less than 50 and 19xx for a 2-digit year if the year is greater than 50. I forget which it assumes when the year is 50.
It seems you want a cutoff different from 50. There is no built-in support for using a different cutoff.
One option is to look at the first two characters and see if it is below or after your cutoff. Then prepend either 19 or 20 to the start of the string as needed. Then parse the string using