export function subtractDate(num, type = 'year', format = 'YYYY-MM-DD', date) { // return dayjs(date).subtract(num, type).format(format); }