Issue with rangedate filter in PrimeReact datatable

UI Components for React
Post Reply
Williamsilk
Posts: 2
Joined: 14 Jun 2023, 08:50

14 Jun 2023, 08:57

Hello,

I have an issue with my rangedate filter in Next.js-TypeScript. I am using PrimeReact library. The filter has not been successful in filtering my datatable. When I click the filter button there is an error : TypeError: value.toDateString is not a function. And there are only 20 data in the table, so it seems that no changes are needed on the backend, but I still haven't found a solution for this yet. I hope someone can help me. Thanks in advance. prepaidgiftbalance
Last edited by Williamsilk on 15 Jun 2023, 06:06, edited 1 time in total.

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

14 Jun 2023, 21:04

Its because you are using a JavaScript `String` instead of a `Date`. The Calendar requires a `Date` field.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 18 guests