When using react-datepicker and passing in a date I am not able to edit the date.
_updateStartDate = (value) => {
this.setState({ startDate: value });
}
<DatePicker
selected={startDate ? moment(startDate, 'DD-MM-YYYY') : moment()}
onSelect={(value) => {this._updateStartDate(moment(value).format('YYYY-MM-DD HH:mm:ss')) }}
onChange={(value) => { this._updateStartDate(moment(value).format('YYYY-MM-DD HH:mm:ss')) }}
/>