9951 explained code solutions for 126 technologies

nodejsHow to add days to date

let dt = new Date();
dt.setDate(dt.getDate() + 25);ctrl + c
new Date

create date/time management object


set days for the given date object


returns days (number of a day in week)

dt.getDate() + 25

adds 25 days to the given date


number of days to add