convert to date DD MMM YYYY 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());