DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
how to add seconds to time in js
const
date
=
new
Date
(
'2020-01-01 10:11:55'
)
;
date
.
setSeconds
(
date
.
getSeconds
(
)
+
10
)
;
Source by levelup.gitconnected.com #
PREVIOUS
NEXT
Tagged:
#add
#seconds
#time
#js
ADD COMMENT
Topic
COMMENT
Name
2+3 =
Submit