Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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,
  }))
  }
  />
 
PREVIOUS NEXT
Tagged: #react #native #datepicker #disable #future #dates
ADD COMMENT
Topic
Name
5+2 =