react-native-datepicker
react-native-datepicker copied to clipboard
I want to set date format DD/MM/YYYY, eg. 28/09/2020
Issue
When I set format format={"DD/MM/YYYY"}. It is causing issue.
Expected Behavior
For example, I have selected date 28th Sep 2020 then date picker value should be 28/09/2020 but it's showing 20/09/2028 in Android and iOS.
Code
<DatePicker mode="date" format={"DD/MM/YYYY"} style={{ flex: 1, width: 200 }} date={this.state.formModel.meetingDate} minDate={this.state.formModel.minScheduleDate} allowFontScaling={true} />
Environment
-
react-native -v
: 3.2.1 -
node -v
: 12.18.4 -
npm -v
: 6.14.6 -
target platform
: Android | iOS -
operating system
: Ubuntu 20.04, Android 10, and iOS 13+
Did you fix the issue?
+1