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