When I change the Language & Region in System Preferences on macOS to language "Norsk nynorsk" and region "Norway" the short example date in the System Preferences window is displayed as "01.04.1976, 07:08".
When I create a NSDateFormatter with dateStyle = NSDateFormatterShortStyle and locale = [NSLocale currentLocale] in an application and check the resulting dateFormat of this NSDateFormatter it is "dd/MM/y" and not "dd.MM.y" according to the displayed example date in the System Preferences window.
How can I get the correct dateFormat that macOS uses to display the short example date in the System Preferences window?
When I create a NSDateFormatter with dateStyle = NSDateFormatterShortStyle and locale = [NSLocale currentLocale] in an application and check the resulting dateFormat of this NSDateFormatter it is "dd/MM/y" and not "dd.MM.y" according to the displayed example date in the System Preferences window.
How can I get the correct dateFormat that macOS uses to display the short example date in the System Preferences window?