function add_ms(date, timeToAdd){ date += timeToAdd; return date.toISOString(); } console.log(new Date(), add_ms(new Date()))