Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react date picker disable past dates

//datepicker

<DatePicker
    selected={new Date()}
    onChange={date => handleDateChange(date, field)}
    minDate={moment().toDate()}
/>
 
PREVIOUS NEXT
Tagged: #react #date #picker #disable #dates
ADD COMMENT
Topic
Name
1+8 =