SHARE
TWEET

Untitled

a guest Jun 12th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. NSLocale *locale = [NSLocale currentLocale];
  2. NSLog(@"Current Locale : %@", [locale localeIdentifier]);
  3.  
  4. NSDate *today = [NSDate date];
  5. NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init];
  6. [dateFormat setDateFormat:@"EEEE MMMM d, YYYY HH:mm"];
  7. [dateFormat setLocale:[[NSLocale alloc] initWithLocaleIdentifier:@"ko_KR"]];
  8. NSString *dateString = [dateFormat stringFromDate:today];
  9. NSLog(@"Today : %@", dateString);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top