#error 'date.toISOString is not a function'
5 messages · Page 1 of 1 (latest)
Quiet in here?
It looks like no-one has responded to your question yet. People might not be available right now or don’t know how to answer your question. Want an answer while you wait? Try asking our experimental bot in #1095492539085230272.
How are you using this component?
I made a quick example https://stackblitz.com/edit/github-nvgubj?file=src%2Fpages%2Findex.astro
---
import DateDisplay from '../components/DateDisplay.astro';
---
<DateDisplay date={new Date(2023,0,1)}/>
this is how I'm using it
---
import FormattedDate from '../components/blog/FormattedDate.astro';
---
<div class="date">
<FormattedDate date={pubDate} />
{
updatedDate && (
<div class="last-updated-on">
Last updated on <FormattedDate date={updatedDate} />
</div>
)
}
</div>
where does pubDate and updatedDate come from?