apaajabolehd / react-native-range-datepicker

react native range datepicker inspired by Airbnb
83 stars 53 forks source link

Display errors with formart startdate #11

Open thanhppm opened 6 years ago

thanhppm commented 6 years ago

Hello guy

I have some error with rnrd when i replace old library

http://prntscr.com/hjoz95 Could you help me solved ?

Thank you

sobirin90 commented 6 years ago

the correct formatting is according to ISO format minus Time.

Eg: '2017-12-27'

Below is the code to construct the format string using JavaScript.

let today = new Date();

today_date = today.getFullYear() +'-'+ (today.getMonth() + 1) +'-'+today.getDate();