17 lines
241 B
Text
17 lines
241 B
Text
---
|
|
interface Props {
|
|
date: Date;
|
|
}
|
|
|
|
const { date } = Astro.props;
|
|
---
|
|
|
|
<time datetime={date.toISOString()}>
|
|
{
|
|
date.toLocaleDateString("en-SE", {
|
|
year: "numeric",
|
|
month: "2-digit",
|
|
day: "2-digit",
|
|
})
|
|
}
|
|
</time>
|