Is there any way/ method to seperate month & year form NSDate?
I just need to display current month & year? Any Example?
NSDate *date = [NSDate date]; NSDateComponents *dateComponents = [calendar components:unitFlags fromDate:date]; NSInteger year = [dateComponents year]; NSInteger month = [dateComponents month]; [calendar release];
cheers endo
This could be done by using NSDateComponents