Determine one year from now
JavaScript version
const plusOneYear = ((d) => new Date(d.setFullYear(d.getFullYear() + 1)))(new Date());
TypeScript version
const plusOneYear: Date = ((d) => new Date(d.setFullYear(d.getFullYear() + 1)))(new Date());
See also