transform DD YY in YY MM DD code example
Example: Convert a date to yyyy mm dd format
const formatYmd = date => date.toISOString().slice(0, 10);
formatYmd(new Date());
const formatYmd = date => date.toISOString().slice(0, 10);
formatYmd(new Date());