You can do this from an event show, but I have to say that the datepicker documentation is really missing. Here's how:
(function() {
$(".dp").datepicker({
format: 'dd.mm.yyyy',
startDate: '01.01.2012',
endDate: ''
}).on("show", function() {
$(this).val("01.05.2012").datepicker('update');
});
})();
Naturally, where is mine 01.05.2012, put the actual date.
source
share