项目需求、任务以及模块精简
This commit is contained in:
@@ -19,4 +19,12 @@ export function formatToDate(date: dayjs.ConfigType | undefined = undefined, for
|
||||
return dayjs(date).format(format);
|
||||
}
|
||||
|
||||
export function firstCurrentYear(format = DATE_FORMAT): string {
|
||||
return dayjs().startOf('year').format(format);
|
||||
}
|
||||
|
||||
export function firstCurrentMonth(format = DATE_FORMAT): string {
|
||||
return dayjs().startOf('month').format(format);
|
||||
}
|
||||
|
||||
export const dateUtil = dayjs;
|
||||
|
||||
Reference in New Issue
Block a user