mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-28 00:50:57 +00:00
20 lines
608 B
JavaScript
20 lines
608 B
JavaScript
'use client';
|
|
'use strict';
|
|
|
|
var dayjs = require('dayjs');
|
|
|
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
|
var dayjs__default = /*#__PURE__*/_interopDefault(dayjs);
|
|
|
|
function toDateString(value) {
|
|
return value == null || value === "" ? value : dayjs__default.default(value).format("YYYY-MM-DD");
|
|
}
|
|
function toDateTimeString(value) {
|
|
return value == null || value === "" ? value : dayjs__default.default(value).format("YYYY-MM-DD HH:mm:ss");
|
|
}
|
|
|
|
exports.toDateString = toDateString;
|
|
exports.toDateTimeString = toDateTimeString;
|
|
//# sourceMappingURL=to-date-string.cjs.map
|