I have an array of dates in "MM/DD/YYYY" format. But passing this array via the hightlightDates prop to react-datepicker is not highlighting the days on the calendar. How can I accomplish this?
<DatePicker
showIcon
selected={startDate}
customInput={<CustomInput />}
onChange={(date) => setStartDate(date)}
minDate={new Date()}
highlightDates={[datesWithEvent]}
wrapperClassName="calendar-wrapper"
calendarClassName="calendar"
className="datepicker"
/>