Gitiles
Code Review
Sign In
git.clicks.codes
/
Coded
/
thecoded.prof
/
959f099eafe05d2cece5359da1b3efc5c1c4a107
/
.
/
sites
/
blog
/
src
/
components
/
FormattedDate.astro
blob: 1bcce73a2b6735eaae7bd135057b85275b999743 [
file
] [
log
] [
blame
]
---
interface
Props
{
date
:
Date
;
}
const
{
date
}
=
Astro
.
props
;
---
<
time datetime
={
date
.
toISOString
()}>
{
date
.
toLocaleDateString
(
'en-us'
,
{
year
:
'numeric'
,
month
:
'short'
,
day
:
'numeric'
,
})
}
</
time
>