convert date into yyyy-mm-dd in java 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());