date.js 117 Bytes Edit Raw Blame History 1 2 3 4 5 import dayjs from 'dayjs' export function formatDate (timeFormat, date) { return dayjs(date).format(timeFormat) }