i have a problem where the user selects a range of dates. i need to then find out what dates fall between those two selected dates. they're coming in via jquery with something as simple as
$('#from').val()+"-"+$('#to').val();
they're coming from jqueryUI datepicker and they just look like
08/07/2013 - 08/09/2012
but i can't figure out how to step through the dates and determine which days in in between. i need the specific dates, but this becomes really complicated with things like the end of the month and different number of days in each month. in this specific example, i'd need to get
08/07/2013, 08/08/2013, 08/09/2013
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…