Skip to content

Latest commit

 

History

History
11 lines (9 loc) · 317 Bytes

react-datepicker.md

File metadata and controls

11 lines (9 loc) · 317 Bytes
import 'react-datepicker/dist/react-datepicker.css';
import DatePicker from 'react-datepicker';
import moment from 'moment';

  <DatePicker {...appointmentDate}
    dateFormat='DD/MM/YYYY'
    selected={appointmentDate.value ? moment(appointmentDate.value) : null }
    className="form-control" />