UNPKG

@mantine/dates

Version:

Calendars, date and time pickers based on Mantine components

16 lines (15 loc) 644 B
"use client"; const require_runtime = require("../../_virtual/_rolldown/runtime.cjs"); let dayjs = require("dayjs"); dayjs = require_runtime.__toESM(dayjs); //#region packages/@mantine/dates/src/utils/to-date-string/to-date-string.ts function toDateString(value) { return value == null || value === "" ? value : (0, dayjs.default)(value).format("YYYY-MM-DD"); } function toDateTimeString(value) { return value == null || value === "" ? value : (0, dayjs.default)(value).format("YYYY-MM-DD HH:mm:ss"); } //#endregion exports.toDateString = toDateString; exports.toDateTimeString = toDateTimeString; //# sourceMappingURL=to-date-string.cjs.map