Search code examples
jquerydatepickerjquery-ui-datepicker

Datepicker enable from specific date


I am taking date from one field..for example it has date as mm/dd/yy --> 07/04/2017

So in datepicker i want to enable from that date plus one day.

I tried with mindate : $("#thatfielddate").val()

But not working

Note: I want to disable past days from that date


Solution

  • try this..

    var strDate = new Date($("#thatfielddate").val());
    strDate.setDate(strDate.getDate() + 1);
    

    and add

    mindate : strDate