Answers for "seconds to date javascript"

3

add 10 seconds to date javascript

var d;
d = new Date('2014-01-01 10:11:55');
alert(d.getMinutes() + ':' + d.getSeconds()); //11:55
d.setSeconds(d.getSeconds() + 10);
alert(d.getMinutes() + ':0' + d.getSeconds()); //12:05
Posted by: Guest on September-04-2020
1

date to seconds js

var date = new Date("2015-08-25T15:35:58.000Z");
var seconds = date.getTime() / 1000; //1440516958
Posted by: Guest on May-08-2021
1

new date javascript

/*Get date from JS API - Date() class*/
let local_date = new Date();
alert("it is " + local_date + "!")
Posted by: Guest on December-30-2020

Code answers related to "seconds to date javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language