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

.setDate(

set days for the given date object

getDate()

returns days (number of a day in week)

dt.getDate() + 25

adds 25 days to the given date

25

number of days to add