I am receiving time in seconds from server and then i am converting tjose seconds into month using this code:
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.
Any help will be appreciated!