Following example code for Filter dates to only display weekdays produces different results than example page.
<DatePicker
selected={ this.state.startDate }
onChange={ this.handleChange }
filterDate={this.isWeekday}
placeholderText="Select a weekday"
/>
Desired behavior:

Current behavior:

@vmiimu Did you provide the isWeekday function in your component?
isWeekday = (date) => {
const day = date.day()
return day !== 0 && day !== 6
}
Closing due inactivity.
It would be great if these were in the docs. It just asks for a function without any info on the function.
@jamparke, contributions to improve the docs are welcome
If others end up here, this is now:
```javascript
const isWeekday = (date) => {
const day = date.getDay()
return day !== 0 && day !== 6
}
@vmiimu Did you provide the isWeekday function in your component?
isWeekday = (date) => { const day = date.day() return day !== 0 && day !== 6 }
Hi Mgrdevport
date.day() is working in your side?
@vmiimu Did you provide the isWeekday function in your component?
isWeekday = (date) => { const day = date.day() return day !== 0 && day !== 6 }Hi Mgrdevport
date.day() is working in your side?
try this
isWeekday = date => {
const day = getDay(date)
return day !== 0 && day !== 6
}
Most helpful comment
It would be great if these were in the docs. It just asks for a function without any info on the function.