chandrajavin / jquery-datepicker

Automatically exported from code.google.com/p/jquery-datepicker
0 stars 0 forks source link

selecting same date as end date in startdate field #265

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
hi,
If we choose start date (12/02/2011) then we cannot select the same 
date(12/02/2011) as end date. But it is needed to select the same date.

i'm using jquery.datePicker.js 53 on xp and IE

help me please!

Original issue reported on code.google.com by jusvi...@gmail.com on 28 Feb 2011 at 5:47

GoogleCodeExporter commented 8 years ago
Presuming you are basing your code on this example:
http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerStartEnd.ht
ml

It's very simple. Just change this line:
$('#start-date').dpSetEndDate(d.addDays(-1).asString());

To:
$('#start-date').dpSetEndDate(d.asString());

Original comment by kelvin.l...@gmail.com on 28 Feb 2011 at 9:47