2808 explained code solutions for 75 technologies


nodejsHow to add minutes to date/time


let dt = new Date();
dt.setTime(dt.getTime() + 10 * 60*1000);ctrl + c
new Date

create date/time management object

.setTime(

sets unix timestamp in milliseconds

.getTime()

returns unix timestamp in milliseconds

+ 10

number of minutes to add to our time

60*1000

convert minute to milliseconds