Posted By

paki on 05/21/11


Tagged

localization NSDate NSDateFormatter


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

dvel


Get Month Name


 / Published in: Objective C
 

  1. - (NSString*)getMonthName:(int)month
  2. {
  3. NSDateFormatter *formatter = [[[NSDateFormatter alloc] init] autorelease];
  4. return [[formatter monthSymbols] objectAtIndex:(month - 1)];
  5. }

Report this snippet  

You need to login to post a comment.