datetimepicker
datetimepicker copied to clipboard
Danish (and other Scandinavian languages) Locale Shows Lowercase Month names in Date mode Picker (iOS)
## Bug Report: Danish (and other Scandinavian languages) Locale Shows Lowercase Month names in DateTimePicker
Summary
When using the DateTimePicker with Danish locale, the day abbreviations (LUN, MAN, TIR, etc.) are displayed in lowercase, while other locales (English, French) show them in uppercase as expected.
Reproducible sample code
import DateTimePicker from '@react-native-community/datetimepicker';
// In your component:
<DateTimePicker
value={new Date()}
mode="date"
display="spinner"
locale="da-DK" // Issue occurs with Danish, Norwegian, and Swedish locales
/>
Steps to Reproduce
- Set device language to Danish (Dansk) or norwegian or swedish
- Open date picker in spinner mode or inline mode
- Observe the month abbreviations (juni, ... ) are in lowercase
- Switch to English or French locale
- Notice day abbreviations are properly capitalized
Expected Behavior
Month texts should be consistently capitalized across all locales
Environment info
- Expo: 53.0.9
- @react-native-community/datetimepicker: 8.3.0
- iOS: 18.5
npx expo --version
0.24.13