react-native-datepicker icon indicating copy to clipboard operation
react-native-datepicker copied to clipboard

I want to set date format DD/MM/YYYY, eg. 28/09/2020

Open malhar-sb opened this issue 4 years ago • 2 comments

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

  1. react-native -v: 3.2.1
  2. node -v: 12.18.4
  3. npm -v: 6.14.6
  4. target platform: Android | iOS
  5. operating system: Ubuntu 20.04, Android 10, and iOS 13+

malhar-sb avatar Sep 28 '20 14:09 malhar-sb

Did you fix the issue?

raajnadar avatar May 15 '21 13:05 raajnadar

+1

AsABarranco avatar Nov 08 '21 11:11 AsABarranco