UNPKG

@paroicms/server

Version:
9 lines 431 B
import { formatDate } from "../helpers/format-date.helper.js"; export function formatDateLiquidFilter(value, { renderingContext, args }) { const format = typeof args[0] === "string" ? args[0] : undefined; const dt = typeof value === "string" || value instanceof Date ? value : undefined; if (!dt) return ""; return formatDate(dt, renderingContext.language, format); } //# sourceMappingURL=format-date.js.map