hmm....have a look at the code below and its the one provided in that example:
$(function() { $('.date-pick').datePicker() $('#start-date').bind( 'dpClosed', function(e, selectedDates) { var d = selectedDates[0]; if (d) { d = new Date(d); $('#end-date').dpSetStartDate(.asString()); } } ); $('#end-date').bind( 'dpClosed', function(e, selectedDates) { var d = selectedDates[0]; if (d) { d = new Date(d); $('#start-date').dpSetEndDate(d.addDays(-1).asString()); } } ); }); replace *d.addDays(1) and d.addDays(-1) *with just *d*. This will allow you to set same day as start date and end date if this is what you wanted. On Sun, Jun 28, 2009 at 4:19 PM, bharani kumar < bharanikumariyer...@gmail.com> wrote: > hi , > y tried but cant changes its functionality , > > Thanks > > On Sun, Jun 28, 2009 at 11:19 AM, Prashant Khanal < > prashantkha...@gmail.com> wrote: > >> you mean to say the problem is that you are not allowed to select the same >> day as the end date. That can be changed. If you check the source code >> provided and play a little with that code. >> >> >> >> >> On Sun, Jun 28, 2009 at 11:25 AM, bharani kumar < >> bharanikumariyer...@gmail.com> wrote: >> >>> The plugin is fine , but u see ,some time my customer the journey may be >>> one day,but its not possible in that plugin ,,,, >>> >>> thanks >>> >>> >>> On Sun, Jun 28, 2009 at 9:01 AM, Prashant Khanal < >>> prashantkha...@gmail.com> wrote: >>> >>>> check this out >>>> this might help you >>>> >>>> http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerStartEnd.html >>>> >>>> >>>> On Sat, Jun 27, 2009 at 8:17 PM, bharani kumar < >>>> bharanikumariyer...@gmail.com> wrote: >>>> >>>>> >>>>> >>>>> Hi >>>>> >>>>> Tell the name of the plugin for >>>>> datePickers with start and end dates >>>>> Thanks >>>>> >>>>> B.S.Bharanikumar >>>>> >>>>> >>>> >>> >>> >>> -- >>> Regards >>> B.S.Bharanikumar >>> http://php-mysql-jquery.blogspot.com/ >>> >> >> > > > -- > Regards > B.S.Bharanikumar > http://php-mysql-jquery.blogspot.com/ >