picking days in a range

37 views
Skip to first unread message

Evil PHP

unread,
Sep 16, 2010, 3:07:50 AM9/16/10
to Datejs - A JavaScript Date Library
I am using a datepicker to select a start date and an end date.

I then need to narrow down individual days within that range. I am
hoping to create checkboxes to select days in that range.. for example
every Monday between 09/01/2010 - 10/21/2010

I am thinking that I will have to make some sort of loop to do
something like:

var nextmonday= Date.startdate.next().monday();
mondays += nextmonday
nextmonday= Date.nextmonday.next().monday();
mondays += nextmonday

Any Ideas on this?

geoffrey.mcgill

unread,
Sep 17, 2010, 12:45:38 PM9/17/10
to Datejs - A JavaScript Date Library
Hi,

There isn't much within the library to deal with date ranges. Just
checking if a date is .between() two other dates and a few related
functions.

Your looping idea sounds like the right path.
Reply all
Reply to author
Forward
0 new messages