import dayjs from "dayjs";

export const getDate = (date?: string) => dayjs(date).format("YYYY-MM-DD");

export const getDatetime = (date?: string) =>
  dayjs(date).format("YYYY-MM-DD HH:mm:ss");

export const getMillis = () => dayjs().valueOf();
 
