import dayjs from 'dayjs';

"use strict";
const DATE_TIME_FORMAT = "YYYY-MM-DD HH:mm:ss";
const DATE_FORMAT = "YYYY-MM-DD";
function formatToDateTime(date = void 0, format = DATE_TIME_FORMAT) {
  return dayjs(date).format(format);
}
function formatToDate(date = void 0, format = DATE_FORMAT) {
  return dayjs(date).format(format);
}
const dateUtil = dayjs;

export { dateUtil, formatToDate, formatToDateTime };
//# sourceMappingURL=date-utils.mjs.map
