1//datepicker
2
3<DatePicker
4 selected={new Date()}
5 onChange={date => handleDateChange(date, field)}
6 minDate={moment().toDate()}
7/>
1 <DatePicker
2 selected={Filters.from}
3 minDate={new Date()} // add this in your date componet
4 onChange={(date) =>
5 setFilters((prev) => ({
6 ...prev,
7 from: date,
8 }))
9 }
10 />