question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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: screenshot3

Current behavior: screenshot2

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
jamparkecommented, Dec 14, 2017

It would be great if these were in the docs. It just asks for a function without any info on the function.

4reactions
mgrdevportcommented, May 7, 2017

@vmiimu Did you provide the isWeekday function in your component?

isWeekday = (date) => {
    const day = date.day()
    return day !== 0 && day !== 6
  }
Read more comments on GitHub >

github_iconTop Results From Across the Web

Filter dates in a PivotTable or PivotChart
Filter dates in a PivotTable or PivotChart · In the Power Pivot window, select a table that contains dates. · In the Design...
Read more >
How to Filter Dates by Year in Excel (With Example)
Step 3: Filter Dates by Year ... Next, we'll filter the data to only show the rows where the year contains 2021. Click...
Read more >
Filter by date - Excel formula
To filter data to include data based on dates, you can use the FILTER function with one of Excel's date functions. In the...
Read more >
Excel 2013: Filtering Data - GCFGlobal
To use advanced date filters: · Select the Data tab, then click the Filter command. A drop-down arrow will appear in the header...
Read more >
Pandas Filter DataFrame Rows on Dates
Pandas Filter DataFrame Rows by matching datetime (date) - To filter/select DataFrame rows by conditionally checking date use DataFrame.loc[] and.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found