Date Format
We're creating DateFormat
component to help you formating date using date-fns (opens in a new tab) library. This component automatically detect your locale and user timezone.
Usage
import { DateFormat } from "@/components/date-format";
<DateFormat date={data.joined} />;
Props
Name | Type | Default | Description |
---|---|---|---|
date (Required) | Date | - | Date to format |