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 ?
OmarAdel320
Posts: 1Questions: 1Answers: 0
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
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