datetimepicker icon indicating copy to clipboard operation
datetimepicker copied to clipboard

Danish (and other Scandinavian languages) Locale Shows Lowercase Month names in Date mode Picker (iOS)

Open 6abriel1chiro opened this issue 6 months ago • 0 comments

## 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

  1. Set device language to Danish (Dansk) or norwegian or swedish
  2. Open date picker in spinner mode or inline mode
  3. Observe the month abbreviations (juni, ... ) are in lowercase
  4. Switch to English or French locale
  5. 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

Image

Image

Image

6abriel1chiro avatar Jun 10 '25 13:06 6abriel1chiro