Possible Duplicate:
Get missing month from timestamp Interval
I am receiving time in terms of seconds from server. Then i am using the below code to convert them into months.
NSDateFormatter * dateFormatter=[[[NSDateFormatter alloc]init]autorelease];
[dateFormatter setDateFormat:@"MMM"];
[dateFormatter stringFromDate:[NSDate dateWithTimeIntervalSince1970:timeStamp]];
The problem is I dont get every month from the server like if I am getting Jan first then second time I'm getting Apr from server but I need to show feb and Mar (missing month) on my iPhone screen (Server people cannot change their code so I have to do it at my end). Can anyone suggest me how can I get missing months.
The same problem is sometimes I get Nov and then Feb from server, but I also have to show Dec and Jan.