common.js 160 B

12345
  1. import dayjs from 'dayjs'
  2. export function parseDate2Str(date, format) {
  3. format = format || "YYYY-MM-DD HH:mm:ss";
  4. return dayjs(date).format(format);
  5. }