web-base-admin/src/utils/date.js

7 lines
126 B
JavaScript
Raw Normal View History

2025-04-17 16:55:50 +08:00
import dayjs from 'dayjs'
export function getBeforeDays(n = 1) {
return dayjs().subtract(n, 'day').format('YYYY-MM-DD')
}