I need to modify the NSDate object. What I basically do is change the value of the year.
eg:
NSString *someYear = @"2093";
NSDate *date = [NSDate date];
... Create a new date based upon 'date' but with specified year value.
So, with the 'date' return 2011-03-06 22:17:50 +0000 from init, I would like to create a date from 2093-03-06 22:17:50 +0000.
However, I would like it to be as culturally neutral as possible, so it will work regardless of time zone.
Thank.
source
share