How to set Locale for NSDateFormatter? I\'ve tried the below code and its not working.
- (NSString *)localizedStringWithFormat:(NSString *)format { NSDa
Adding this as I spent some time on trying to NOT use the localized locale in my date formatter.
From apple docs: Use the system locale when you don’t want any localizations. Use the current locale to format text that you display to users.
Code: [formatter setLocale:[NSLocale systemLocale]];