1 2 3 4 5
import dayjs from 'dayjs' export function formatDate (timeFormat, date) { return dayjs(date).format(timeFormat) }