UNPKG

@daysnap/utils

Version:
12 lines (10 loc) 158 B
// src/parseDate.ts function parseDate(v) { if (typeof v === "string") { v = v.replace(/-/g, "/"); } return new Date(v); } export { parseDate };