I am working on a application in Titanium where I need to get all the dates in a range of 2 weeks.
For example, today's date is 2013-24-07, I need to get all dates until 2013-07-08 like this:
var dates = [];
dates[0] = '2013-24-07';
dates[1] = '2013-25-07';
dates[2] = '2013-26-07';
dates[3] = '2013-27-07';
dates[4] = '2013-28-07';
dates[5] = '2013-29-07';
dates[6] = '2013-30-07';
dates[7] = '2013-31-07';
dates[8] = '2013-01-08';
And so on...
I made a test with the code I found here but I couldn't get it to work.
Any help is very much appreciated,
Thanks