mirror of
https://github.com/maciejpedzich/maciejpedzi.ch.git
synced 2025-02-06 05:38:35 +01:00
18 lines
231 B
Plaintext
18 lines
231 B
Plaintext
|
---
|
||
|
export interface Props {
|
||
|
date: Date;
|
||
|
}
|
||
|
|
||
|
const { date } = Astro.props;
|
||
|
---
|
||
|
|
||
|
<time datetime={date.toISOString()}>
|
||
|
{
|
||
|
date.toLocaleDateString('en-us', {
|
||
|
year: 'numeric',
|
||
|
month: 'short',
|
||
|
day: 'numeric',
|
||
|
})
|
||
|
}
|
||
|
</time>
|