I would like to add 20 minutes to the current date. While browsing the messages already posted on this subject, I recovered a piece of code but I can not adapt it. Can you help me ?
// get the current date & time
var dateObj = Date.now();
// I do not understand what these values are
dateObj += 1000 * 60 * 60 * 24 * 3;
// create a new Date object, using the adjusted time
dateObj = new Date(dateObj);
date.setMinutes()
?1000 * 60 * 60 * 24 * 3
is three days in milliseconds.new Date(Date.now()+20*60*1000);
date.setMinutes(date.getMinutes() + 20)