Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
import dayjs from "dayjs";
import localizedFormat from "dayjs/plugin/localizedFormat";
dayjs.extend(localizedFormat);
type Props = {
dateString: string;
};
const DateFormatter = ({ dateString }: Props) => {
return <time dateTime={dateString}>{dayjs(dateString).format("LL")}</time>;
};
export default DateFormatter;