jquery - Eternicode datepicker start date today -


first time using etrnicode bootstrap datepicker , cannot set tthe start date today , disable selection of previous dates.

my code is:

$('#issue_date').datepicker({     startdate: '+0d' }).on('changedate', function(){    ... stuff happens here });  

i have tried:

$('#issue_date').datepicker({     startdate: new date() }).on('changedate', function(){     ... stuff happens here });  

but can still select yesterday. have missed? thanks

the issue can see in second attempt date() must capitalized. fiddle.

$('.datepicker').datepicker({     autoclose: true,     startdate: new date() }).on('changedate', function(){     console.log("hello"); });  

Comments