js add 5 days to date then back to date format code example Example: new date() in javascript 3 days from now var dt = new Date(); dt.setDate(dt.getDate() + 3);