useDateFormatter

Memoized, locale-aware absolute, relative and range date formatting built on the Intl API.

ReactDatesIntlLocalization
format()
Sunday, October 20, 2024
formatRelative() vs 2025-01-01
2 months ago

Install Dependencies

1npx shadcn@latest add https://ui.devsloka.in/r/use-date-formatter.json