I have for example two dates:
var first = '2013-07-30';
var second = '2013-08-04';
How can i show all dates between first
and second
?
This should return me:
2013-07-30
2013-07-31
2013-08-01
2013-08-02
2013-08-03
2013-08-04
In PHP I can get dates to strtotime
and use a while
loop. But how can I do it in jQuery?
I would like have this in array.