🛠️ VitNode is still in development! You can try it out, but it is not recommended to use it now in production.
Frontend
Components
Date Format

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

NameTypeDefaultDescription
date (Required)Date-Date to format