--- import type { HTMLAttributes } from "astro/types"; type Props = HTMLAttributes<"time"> & { date: Date; }; const { date, ...attrs } = Astro.props; --- {date.toLocaleDateString("en-us", { year: "numeric", month: "short", day: "numeric", })}