import dayjs from 'dayjs' export function getBeforeDays(n = 1) { return dayjs().subtract(n, 'day').format('YYYY-MM-DD') }