Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

convert date format mm/dd/yyyy to yyyymmdd in javascript

let d = '06/22/2022'.split('/')
d = d[2].concat(d[0], d[1])

console.log(typeof d, d)
// string 20220622
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #date #format #yyyymmdd #javascript
ADD COMMENT
Topic
Name
1+9 =