Advertisement
Guest User

Untitled

a guest
Jun 12th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  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);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement