Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NSLocale *locale = [NSLocale currentLocale];
- NSLog(@"Current Locale : %@", [locale localeIdentifier]);
- NSDate *today = [NSDate date];
- NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init];
- [dateFormat setDateFormat:@"EEEE MMMM d, YYYY HH:mm"];
- [dateFormat setLocale:[[NSLocale alloc] initWithLocaleIdentifier:@"ko_KR"]];
- NSString *dateString = [dateFormat stringFromDate:today];
- NSLog(@"Today : %@", dateString);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement