You will need to use the method dpSetSelected. I added this to the code on the example page below:
$(function()
{
$('.turn-me-into-datepicker')
.datePicker({inline:true})
.dpSetSelected('01/04/2010')
.bind(
'dateSelected',
function(e, selectedDate, $td)
{
console.log('You selected ' + selectedDate);
}
);
});
As already mentioned, if you have changed Date.format , you need to make sure that the string is in the format in which you changed it.
source
share