Answers for "setting part of times in javascript"

0

setting part of times in javascript

var d = new Date();
d.setDate(d.getDate() + 7); // adds a week to a date

setDate();          // day as a number (1-31)
setFullYear();      // year (optionally month and day)
setHours();         // hour (0-23)
setMilliseconds();  // milliseconds (0-999)
setMinutes();       // minutes (0-59)
setMonth();         // month (0-11)
setSeconds();       // seconds (0-59)
setTime();          // milliseconds since 1970)
Posted by: Guest on August-05-2021

Code answers related to "setting part of times in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language