17 lines
224 B
Text
17 lines
224 B
Text
---
|
|
interface Props {
|
|
date: Date;
|
|
}
|
|
|
|
const { date } = Astro.props;
|
|
---
|
|
|
|
<time datetime={date.toISOString()}>
|
|
{
|
|
date.toLocaleDateString('en-us', {
|
|
year: 'numeric',
|
|
month: 'short',
|
|
day: 'numeric',
|
|
})
|
|
}
|
|
</time>
|