SankhaUI / jquery-datepicker

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

Start and end date pickers with only dates in the past selectable #351

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

What is the expected output? What do you see instead?
Start and end date pickers but only dates in the past selectable

Please provide a URL to a page displaying the problem.

What version of the datepicker are you using? On what operating system? And 
Which Browser?

Please provide any additional information below.
I use your demo script "Start and end date pickers" and it works well. But I 
would like to have only past days selectable. How can I do this? 

Original issue reported on code.google.com by wgeffing...@gmail.com on 5 Jul 2012 at 9:16

GoogleCodeExporter commented 9 years ago
You will have to set the startDate and endDate parameters in the definition of 
your datepicker.

    $('.date-pick').datePicker(
    {
        clickInput: true,
        startDate: '2012-08-31', //Some date in the past
        endDate: '2014-01-20 00:00:00' //Some date, today in your case.
    }

Original comment by anders.w...@gmail.com on 31 Aug 2012 at 9:51