@mantine/dates
Version:
Calendars, date and time pickers based on Mantine components
13 lines (10 loc) • 377 B
JavaScript
'use client';
import dayjs from 'dayjs';
function toDateString(value) {
return value == null || value === "" ? value : dayjs(value).format("YYYY-MM-DD");
}
function toDateTimeString(value) {
return value == null || value === "" ? value : dayjs(value).format("YYYY-MM-DD HH:mm:ss");
}
export { toDateString, toDateTimeString };
//# sourceMappingURL=to-date-string.mjs.map