Home > database >  Show only days in react date picker
Show only days in react date picker

Time:11-21

I want to custumize my DatePicker and only show days cause i want the user to choose one or multiple day from 1 to 31 with ignoring the month and the year

this is my date picker from

"react-multi-date-picker"

 <DatePicker
                id={"startDate"}
                className="form-control"
                multiple
                format="DD" 
             
                // }}
              /> 

CodePudding user response:

You could use a dropdown or select instead.

CodePudding user response:

You can add following props as below

 <DatePicker
      id={'startDate'}
      className="form-control"
      multiple
      format="DD"
      buttons={false}
      disableYearPicker
      disableMonthPicker
    />
  • Related