web-ridge / react-native-paper-dates

Smooth and fast cross platform Material Design date and time picker for React Native Paper
https://www.reactnativepaperdates.com
MIT License
654 stars 170 forks source link

How to change days and month format #172

Closed randurd closed 2 years ago

randurd commented 2 years ago

Hello,

Any idea on how to change the days and month format?

Version : 0.8.7 Picker: <DatePickerModal locale="en" mode="single" visible={true} onDismiss={() => { }} date={new Date()} onConfirm={(selected) => { }} />

Screen Shot 2022-06-09 at 12 56 04 PM

RichardLindhout commented 2 years ago

Change your locale

RichardLindhout commented 2 years ago

locale="en"

RichardLindhout commented 2 years ago

Do you use expo / React Native. Do you use polyfills for Intl?

Possible fix: Enable Hermes on Android + remove polyfills

randurd commented 2 years ago

Do you use expo / React Native. Do you use polyfills for Intl?

Possible fix: Enable Hermes on Android + remove polyfills

Yes I'm using expo / react native and I was able to fixed the issue with your solution. Thanks!

timmermansjoy commented 2 years ago

@randurd mark as solved then?

javiermojito commented 1 year ago

Hello everyone. It seems that removing the polyfills solves the issue, but how can doing this affects the app? Is there a solution to this without the need of removing polyfills?