tachybase_todo/packages/plugins/@hera/plugin-rental/src/utils/daysUtils.ts

10 lines
256 B
TypeScript
Raw Normal View History

2024-03-07 20:55:41 +08:00
import dayjs from 'dayjs';
const convertFormat = (currentDate, formatText) => {
return dayjs(currentDate).format(formatText);
};
export const converDate = (currentDate: Date, formatText: string) => {
return convertFormat(currentDate, formatText);
};