Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

324 B
Raw Blame
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;