selvi jp

selvi jp

  • NA
  • 323
  • 76.8k

How can i get date from db in input type date in react js

Jul 6 2021 8:15 AM

 

 <input id="profile_dateOfBirth"  dateFormat="yyyy-MM-dd"

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

         defaultValue={emp.profile_dateOfBirth}

         onBlur={(data)=>{this.setState({profile_dateOfBirth:data.target.value})}} type="date"  />


Answers (1)