Search
 
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
Name
7+8 =