GitHub 6248★

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

Follow me on and to get more useful contents.