I use this date picker. I need input to be empty on page loading, but set default value to today on datepicke popap. Now when I jast write:
$(".dp").datepicker({
format: 'dd.mm.yyyy',
startDate: '01.01.2012',
endDate: ''
});;
It’s first Janary 1970 by default when datapicker is popuping. How can I change default value?
You can do it from the
showevent, but I have to say that datepicker’s documentation is really lacking. Here’s how:Naturally, where I have
01.05.2012, put the actual date.