showing results for - "javascript convert date value to specific format"
Matthew
12 Feb 2017
1date.getFullYear()+"-"+("0" + (date.getMonth()+1)).slice(-2)+"-"+("0" + date.getDate()).slice(-2)
2// Returns format YYYY-MM-DD Padded with 0s for month and day