I have two datepickers, namely check-in and check-out dates. I want to get the difference of those dates and output it in a JavaScript variable, so I can get it to a PHP variable. How do I do it?
For example:
Check -in : 01 / 15 / 2017
Check - out: 01 / 18 / 2017
I shall get 3 days.
Code I have so far: jsFiddle