I need no generate a full daterange in JScript from a given Startdate to now.
Startdate: 2010-03-25
2010-03-26
2010-03-27
...
2010-05-30
I am very confused with Javascript Date.
best would be a function to give a daterange as params and getting an Array of the formatted date back, something like that:
range[0] = 2010-03-25
range[1] = 2010-03-26
range[2] = 2010-03-27
...
range[x] = 2010-05-30
I am so confused thanks for any hint
marcus
The following snippet will store the dates as strings in the format you want in the
dateStringsarray:If you want to keep the date objects in an array, and format the strings yourself at a later date (pun intended), do something like the following: