I am using core-plot for drawing bar graphs. I have displayed date on x-axis. I have used following code:
NSDateFormatter * formatter=[[NSDateFormatter alloc]init];
[formatter setDateFormat:@"dd MMM yy"];
double tickLocation=0.5;
NSMutableArray *customLabels = [NSMutableArray arrayWithCapacity:[valuesArray count]];
for ( HistoryIndividualValueBean * value in valuesArray)
{
CPTAxisLabel *newLabel = [[CPTAxisLabel alloc] initWithText:[formatter stringFromDate:value.submittedTime] textStyle:x.labelTextStyle];
newLabel.tickLocation = [[NSNumber numberWithDouble:tickLocation++] decimalValue];
newLabel.offset = x.labelOffset + x.majorTickLength;
newLabel.rotation = M_PI_2;
[customLabels addObject:newLabel];
[newLabel release];
}
[formatter release];
x.axisLabels = [NSSet setWithArray:customLabels];
This is working fine on iphone. But on ipad it displays weird characters in date(which I have formatted above). Please refer to this image:

The reason you see this behavior is that
MMMformat is locale-specific. In Japan, it formats the month as month’s number followed by the月character.If you would like a three-letter name of the months to be displayed regardless of the locale, pick US as the locale for your formatter: