DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
return a date time object in yyyy-mm-dd hr:min:sec
const str = (new Date()).toISOString().slice(0, 19).replace(/-/g, "/").replace("T", " ");
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#return
#date
#time
#object
ADD COMMENT
Topic
COMMENT
Name
8+2 =
Submit