Ben Schlegel
2023-08-24 9d2340e90b55fb9480e0901bc7360f3d72e688da
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
interface Props {
  date: Date
}
 
export function formatDate(d: Date): string {
  return d.toLocaleDateString("en-US", {
    year: "numeric",
    month: "short",
    day: "2-digit",
  })
}
 
export function Date({ date }: Props) {
  return <>{formatDate(date)}</>
}