Answers for "javascript convert date value to specific format"

0

javascript convert date value to specific format

date.getFullYear()+"-"+("0" + (date.getMonth()+1)).slice(-2)+"-"+("0" + date.getDate()).slice(-2)
// Returns format YYYY-MM-DD Padded with 0s for month and day
Posted by: Guest on September-27-2021

Code answers related to "javascript convert date value to specific format"

Code answers related to "Javascript"

Browse Popular Code Answers by Language