serverless-pdf-chat / frontend / src / common / utilities.ts
utilities.ts
Raw
import { format } from "date-fns";

export function getDateTime(date: string): string {
  return format(new Date(date), "MMMM d, yyyy - H:mm");
}