how to transform yyyy-mm-dd into yyymmdd "rstudio" 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());