I'm trying to take someone's birthday and find the day that he/she turns 65. I have the following code but the calculation seems off. For example, if I use the birthday 11/15/1957 I should get 11/15/2022 as the 65th birthday. However, I'm getting 8/9/1982 (which is incorrect) instead.
Am I missing something?
function convertDate(birthday) {
var usethisdate = new Date(birthday);
//let's start by finding the person's 65th birthday
var birthdaysixtyfive = new Date(usethisdate.setMonth(usethisdate.getMonth() + 780));
console.log("65th birthday: ", birthdaysixtyfive.toDateString());
}
convertDate('11/15/1957');