DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
javascript format date object to yyyy-mm-dd
const yourDate = new Date() yourDate.toISOString().split('T')[0]
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#javascript
#format
#date
#object
ADD COMMENT
Topic
COMMENT
Name
9+6 =
Submit