10 lines
256 B
TypeScript
10 lines
256 B
TypeScript
|
import dayjs from 'dayjs';
|
||
|
|
||
|
const convertFormat = (currentDate, formatText) => {
|
||
|
return dayjs(currentDate).format(formatText);
|
||
|
};
|
||
|
|
||
|
export const converDate = (currentDate: Date, formatText: string) => {
|
||
|
return convertFormat(currentDate, formatText);
|
||
|
};
|