What am I doing wrong?
I am trying to get an NSDateFormatter to translate custom date templates using the current locale.
Example:
dateFormat = [[NSDateFormatter alloc] init];
dateFormat.locale = [NSLocale currentLocale];
[dateFormat setDateFormat:@"MMM"];
output = [self.dateFormat stringFromDate:dateObject];
No matter what I change my current locale settings, I always see the abbreviations of the English month.
Thanks for any help you can provide.
source
share