henninghall / react-native-date-picker

React Native Date Picker is datetime picker for Android and iOS. It includes date, time and datetime picker modes. The datepicker is customizable and is supporting different languages. It's written with native code to achieve the best possible look, feel and performance.
MIT License
2.23k stars 342 forks source link

Date format support : YYYY-MM-DD while opening picker. #293

Closed pragyawebvillee closed 3 years ago

pragyawebvillee commented 3 years ago

When the picker is opened, it opens date with DD MM YYYY format, I changed locale for this but the picker opens it in another language.

Expected behavior I want to open Picker in YYYY MM DD format

To Reproduce <DatePicker locale='' format="YYYY-MM-DD" date={props.date} mode={'date'} maximumDate={props.date} onDateChange={changeDateValue} />

Smartphone (please complete the following information):

henninghall commented 3 years ago

Specifying a different format in other ways than changing the locale is or will not be supported since thats how UIDatePicker works. Which country or countries are you trying to target?

pragyawebvillee commented 3 years ago

Targeting Countryies: India & Malaysia @henninghall