Filtering data in an array.
Posted
by user276424
on Stack Overflow
See other posts from Stack Overflow
or by user276424
Published on 2010-04-22T18:33:29Z
Indexed on
2010/04/23
7:13 UTC
Read the original article
Hit count: 266
Hi all,
I have an array that has 30 date objects. The date objects are indexed in the array from the minimum date value to the maximum date value. What I would like to do is retrieve only 7 dates from the array. Out of the 7, the first one should be the minDate and the last should be the maxDate, with 5 dates in the middle. The 7 numbers should increment evenly from the minDate to the maxDate. How would I accomplish this? Hope I was clear.
Thanks, Tonih
© Stack Overflow or respective owner