UNPKG

@daysnap/utils

Version:
16 lines (13 loc) 231 B
import { isString } from "./chunk-F4QMON2N.js"; // src/normalizeDate.ts function normalizeDate(value) { if (isString(value)) { value = value.replace(/-/g, "/"); } return new Date(value); } export { normalizeDate };