Answers for "react native datepicker disable future dates"

0

react native datepicker disable future dates

<DatePicker
  selected={Filters.from}
  maxDate={new Date()}  // add this in your date componet
  onChange={(date) =>
  setFilters((prev) => ({
    ...prev,
    from: date,
  }))
  }
  />
Posted by: Guest on October-07-2021

Code answers related to "react native datepicker disable future dates"

Code answers related to "Javascript"

Browse Popular Code Answers by Language