How to get number of days in DataTables date range filter between Minimum Date and Maximum Date ?

How to get number of days in DataTables date range filter between Minimum Date and Maximum Date ?

OmarAdel320OmarAdel320 Posts: 1Questions: 1Answers: 0
edited March 2023 in Free community support

https://datatables.net/extensions/datetime/examples/integration/datatables.html

Description of problem:
I want to get the number of days between the two values I am filtering with between Minimum Date and Maximum Date

Thanks in advance.

Answers

  • rf1234rf1234 Posts: 2,993Questions: 87Answers: 421
    edited March 2023

    That is not a data tables related question, right.

    You'll find very many related threads on Stack Overflow. Depending on what date plug in you use (e.g. moment.js) you will prefer a different solution.

    Here is an example using moment.js:
    https://codepen.io/SitePoint/pen/eYmMjxG

Sign In or Register to comment.