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](https://secure.gravatar.com/avatar/742f1d0688009d0cd02aac49f84cd9bc/?default=https%3A%2F%2Fvanillicon.com%2F742f1d0688009d0cd02aac49f84cd9bc_200.png&rating=g&size=120)
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