Answers for "add minutes and seconds to date javascript"

12

javascript add minutes to date

//add 30 minutes to date
var minutesToAdd=30;
var currentDate = new Date();
var futureDate = new Date(currentDate.getTime() + minutesToAdd*60000);
Posted by: Guest on July-31-2019
0

how to add seconds to time in js

const date = new Date('2020-01-01 10:11:55');date.setSeconds(date.getSeconds() + 10);
Posted by: Guest on January-22-2021
0

add 10 seconds to date javascript

<html>
</html>
Posted by: Guest on August-14-2020

Code answers related to "add minutes and seconds to date javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language