根据数字获得月份比如1--1月/January
-(NSString*)MonthNameString:(NSInteger )monthNumber
{
NSDateFormatter *formate = [NSDateFormatter new];
NSArray *monthNames = [formate standaloneMonthSymbols];
NSString *monthName = [monthNames objectAtIndex:(monthNumber - 1)];
return monthName;
}
网友评论