Returns a text representation of a date in YYYY-MM-DD format.
YYYY-MM-DD
A date.
A YYYY-MM-DD string of the date.
const date = new Date(1987, 10, 14);const ymd = dateYMDToString(date);console.log(ymd); // 1987-11-14 Copy
const date = new Date(1987, 10, 14);const ymd = dateYMDToString(date);console.log(ymd); // 1987-11-14
Returns a text representation of a date in
YYYY-MM-DDformat.