I copied a javascript file from a page on the web , it uses a datepicker. What I noticed is that the month doesn’t start to current month. Here is its code :
$( ".datepicker" ).datepicker({
defaultDate: +7,
showOtherMonths:true,
autoSize: true,
appendText: '(dd-mm-yyyy)',
dateFormat: 'dd-mm-yy'
});
So how to make it start to current month ?
Maybe because you add 7 days? which makes it next month?