title: How to calculate the number of nights between two dates using AngularJs?
body: <p>I am trying to find the number of nights between two dates, couldn't find anywhere. Please help me with the shortest code snippet which will give the number of nights between two dates. For example, if two dates are - 18/10/2016 and 21/10/2016(Please consider the default time format i.e $scope.date = new date()) then the number of nights will be - 3</p>