'use strict';

var dayjs = require('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;

exports.dateUtil = dateUtil;
exports.formatToDate = formatToDate;
exports.formatToDateTime = formatToDateTime;
//# sourceMappingURL=date-utils.js.map
