Sai

Sai

  • NA
  • 203
  • 28.9k

Date Range for start and end dates

Dec 27 2017 4:53 AM
Hi friends,
 
can you please solve my issue.
 
Requriement:
==========
 
i have 2 jquery datepicker.
 
$("#startdate").datepicker({
format: 'dd/mm/yyyy',
autoclose: true,
todayHighlight: true
});
$("#enddate").datepicker({
format: 'dd/mm/yyyy',
autoclose: true,
todayHighlight: true,
});
 
Now the thing is if i choose startdate 12/Dec/2017 and enddate should be 13/dec/2017 or increase date .
 
but when i select enddate lessthan start date it should not allow.
 
Main thing is when i choose startdate 12/dec/2017 and enddate contains only 12 to end of that particular month days should be visible..before days should be disable..it doesn't allow to select the enddate like 11/dec/2017.
 
If i select any year,month and day for startend then immediately enddate should be greater only
 
it doesn't allow to select less date.
 
i.e 12/jan/2000 startdate
11/feb/2013 enddate }=>correct input
12/jan/2000 startdate
11/jan/2000 enddate }=>incorrectinput
 
i hope you understand my problem.
 
Please help me..
Regards

Answers (3)