hardlounge/client/js/helpers/localetime.ts

4 lines
113 B
TypeScript
Raw Permalink Normal View History

import dayjs from "dayjs";
export default (time: Date | number) => dayjs(time).format("D MMMM YYYY, HH:mm:ss");