Skip to content
This repository was archived by the owner on Nov 16, 2018. It is now read-only.
This repository was archived by the owner on Nov 16, 2018. It is now read-only.

Invalid datetime error #159

Open
Open
@premboyapati

Description

@premboyapati

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.

Activity

lex-em

lex-em commented on Sep 21, 2016

@lex-em
  • for empty initial date on update state
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @lex-em@premboyapati

        Issue actions

          Invalid datetime error · Issue #159 · quri/react-bootstrap-datetimepicker