const require_runtime = require("../../../../../../_virtual/_rolldown/runtime.js");
const require_locale = require("../../../../../../utils/locale.js");
let dayjs = require("dayjs");
dayjs = require_runtime.__toESM(dayjs);
//#region src/components/table/Actions/component/ExportImport/utils/date.ts
/**
* @Title: 格式化日期
* @Describe:
* @Author: Wzw
* @param {string} date
* @param {string} format
*/
const formatDate = (date, format) => {
	if (!date) return date;
	const lang = require_locale.getCurrentLocale();
	let _format = format || ["HH:mm:ss DD/MM/YYYY", "YYYY-MM-DD HH:mm:ss"];
	let type = lang === "en-US" || lang === "en" ? _format[0] : _format[1];
	return (0, dayjs.default)(date).format(type);
};
//#endregion
exports.formatDate = formatDate;
