Currently facing a dilemma where I need to determine the number of days between two specific dates selected from a bootstrap daterangepicker
on a monthly basis. For example, if we have:
start date = 07/19/2018
end date = 09/28/2018
The desired outcome should be:
number of days in 07 = 13 days
number of days in 08 = 31 days
number of days in 09 = 28 days
total number of days = 72 days