selvi jp

selvi jp

  • NA
  • 323
  • 76.9k

how can i display date in datepicker input from database in react js

Jul 1 2021 10:18 AM

{emps.map(emp=>

         <DatePicker id="profile_dateOfBirth" 

            className="input__field2dp "  name="profile_dateOfBirth "onChange={this.handleChange}

            defaultValue={emp.profile_dateOfBirth}

            onBlur={(data)=>{this.setState({profile_dateOfBirth:data.target.value})}} ></DatePicker>)}


Answers (1)