Glad it helps. Make sure that there's no conflict with adding a month
to a 31 day month when there is no 31 in the following month (i.e.
8/31 + 1 month = 9/31 which doesn't exist). I didn't test it, but that
might give you an unexpected result.
-Wayne
On Sep 22, 5:21 pm, pedalpete <[EMAIL PROTECTED]> wrote:
> Very nice work around Wayne, can't believe I didn't think of that.
>
> Here's the code I used to set-up the next month in case anybody else
> needs this.
> [code]
> function multiCalDate(){
> var startingDate = new Date();
> var startMonth = startingDate.addMonths(1);
> return startMonth;
> }
> [/code]
>
> On Sep 22, 1:00 pm, Wayne <[EMAIL PROTECTED]> wrote:
>
> > Wow, that's got some pretty styling. Good find.
>
> > I don't know how to modify the plugin code, but I found that if you
> > want to display the current month as the first month, you can set the
> > current value to a date in next month, while leaving the date value to
> > the date you want initially selected.
>
> > As follows:
> > $('#date').DatePicker({
> > flat: true,
> > date: '2008-09-22',
> > current: '2008-10-01',
> > calendars: 3,
> > starts: 1
> > });
>
> > Hope that helps,
> > -Wayne
>
> > On Sep 22, 2:40 pm, pedalpete <[EMAIL PROTECTED]> wrote:
>
> > > I've been using Kevin Lucks datepicker for the past few months, and I
> > > was trying to figure out how to make it a 'range' datepicker when I
> > > came acrosshttp://www.eyecon.ro/datepicker/
> > > The naming will probably get confusing, but this is a really nice
> > > range picker.
>
> > > I am having one problem with it though.
> > > When I show multiple calendars on my page (3), I've got is showing
> > > last month, this month, and next month, but I'm trying to get the code
> > > to show this month, next month, following month as there is no point
> > > in having history on my site.
>
> > > The section of code which defines which calendars to display is
> > > [code]
> > > for (var i = ; i < options.calendars; i++) {
> > > date = new Date(options.current);
> > > date.addMonths(-currentCal +i);
> > > tblCal =
> > > cal.find('table').eq(i+1);
> > > switch (tblCal[0].className) {
> > > case 'datepickerViewDays':
> > > dow =
> > > formatDate(date, 'B, Y');
> > > [/code]
>
> > > changing to 'date.addMonths(currentCal +i)' starts at next month, and
> > > everything else I've tried screws everything up.
>
> > > Any idea how to change this code to show this month?
>
>