Sequence
docs
Astro components

Formatted date

specific formatted date.

Displays a date object formatted as a readable string (e.g., "Oct 12, 2023").

Usage

---
import FormattedDate from '@/components/FormattedDate.astro';
---

<FormattedDate date={new Date('2023-10-12')} />

Props

PropTypeDefaultDescription
dateDate-The date object to format and display.

On this page