---
interface Props {
  date: Date;
}

const { date } = Astro.props;
---

<time class="leading-none capsize" datetime={date.toISOString()}>
  {
    date.toLocaleDateString("en-us", {
      year: "numeric",
      month: "short",
      day: "numeric",
    })
  }
</time>
