If I understand your request, one of these two should work:

  $("#datepicker").datepicker({
    minDate: new Date(2007,7,1),
    maxDate: new Date(2009,9,31),
    beforeShowDay:  function(date) {return [(date.getMonth()>6 &&
date.getMonth()<10),""]; }
  });

  $("#datepicker3").datepicker({
    numberOfMonths: 3,
    stepMonths: 12,
    minDate: new Date(2007,7,1),
    maxDate: new Date(2009,9,31),
    beforeShowDay:  function(date) {return [(date.getMonth()>6 &&
date.getMonth()<10),""]; }
  });

See demo here: http://jsbin.com/obuqu/edit

Hth,

Dave


On Oct 23, 4:13 am, isip <[email protected]> wrote:
> Hi,
>
> in my application, I want to use the Datepicker. The user should be
> able to select a three-month range within the last three years, e.g.
> from 01/08 to 31/10 in the years 2007 to 2009.
>
> How do I achieve that?
>
> Thanks for your help
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to