mirror of
https://github.com/Tencent/tdesign-vue-next-starter.git
synced 2024-12-24 00:56:32 +08:00
a5b177e8e1
Co-authored-by: pengYYYYY <pengyue970715@gmail.com>
7 lines
307 B
TypeScript
7 lines
307 B
TypeScript
// 获取常用时间
|
|
import dayjs from 'dayjs';
|
|
|
|
export const LAST_7_DAYS = [dayjs().subtract(7, 'day').format('YYYY-MM-DD'), dayjs().subtract(1, 'day').format('YYYY-MM-DD')];
|
|
|
|
export const LAST_30_DAYS = [dayjs().subtract(30, 'day').format('YYYY-MM-DD'), dayjs().subtract(1, 'day').format('YYYY-MM-DD')];
|