javascript set date format mm/dd/yyyy code example
Example 1: javascript format date yyyy-mm-dd
let today = new Date()
today.toISOString().split('T')[0]
Example 2: javascript format date yyyy-mm-dd
// yyyy-mm-dd
new Date().toISOString().slice(0, 10)