I am new in react. I need use react-datepicker
I want to get value of input, when I change date. If i click on 20th October 2017, i want put 20th October 2017 in my vari
Just use this:
handleChange = date => { const valueOfInput = date.format(); ///... };
Because this datepicker returns a moment.js object!
datepicker
moment.js
For more information, look into the moment.js docs here.