Answers for "get date in specific format javascript"

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 "get date in specific format javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language