Answers for "dayjs plus one hour"

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
1

javascript add 1 day to new date

var date = new Date();
// add 1 day
date.setDate(date.getDate() + 1);
Posted by: Guest on March-02-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language