import { parse as l, isValid as n } from "date-fns";
function t(r, a) {
  if (!r || r.trim() === "")
    return null;
  const e = l(r, a, /* @__PURE__ */ new Date());
  return n(e) ? e : null;
}
export {
  t as default
};
//# sourceMappingURL=parseDate.js.map
