react-bootstrap-datetimepicker icon indicating copy to clipboard operation
react-bootstrap-datetimepicker copied to clipboard

Invalid datetime error

Open premboyapati opened this issue 8 years ago • 1 comments

Hi there,

This is my code which I am using in my current react project. <DateTimeField className="some_class_name" dateTime={this.props.datevalue} minDate={moment().subtract(0, "days")} format={format} viewMode={mode} inputFormat={inputFormat} onChange={this.onDateChangeHandler}/>

The problem with the datefeild is if we supply defaultdate as null or empty (this.props.datevalue= null), *it throws invalid datetime * and does not show the calendar at all.

it forces to supply some valid date. Could you please help me to fix this issue.

Thanks & Regards Prem.

premboyapati avatar Mar 31 '16 17:03 premboyapati

  • for empty initial date on update state

lex-em avatar Sep 21 '16 12:09 lex-em