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

Warning: Failed prop type: Invalid prop `dateTime` supplied to `DateTimeField`.

Open Raman16 opened this issue 8 years ago • 0 comments

Can some please explain why i am getting this Warning.

"Warning: Failed prop type: Invalid prop dateTime supplied to DateTimeField." below is my code i have taken date through props i.e Wed Jul 26 2017 13:15:00 GMT+0530 (IST)}


 const DateInput = props => {
  console.log(props);
  var date=props.date;
  return (
     <DateTimeField
      name="start_date"
      onChange={props.input.onChange}
      mode="date"
      dateTime={date}
      inputFormat='DD/MM/YYYY'
      format='DD/MM/YY'
    />
  );
};

and

 <Field
                name="start_date"
                className="form-control"
                type="text"
                component={DateInput}
                date={date}
              />

Thanks in Advance

Raman16 avatar Jul 26 '17 08:07 Raman16