I currently have this method:
function fill_date_jaarlijks()
{
var today = new Date();
$("#datepicker_eind").datepicker("setDate", new Date(today.getFullYear()+1,today.getMonth(),today.getDay()));
}
What it should do is, return the date of (today + 1 year).
What it actually returns is 01 December 2012, while today’s date is 19 December 2011.
Could someone explain?
getDayreturns day of weekUse
getDateinstead.Or better still: