← back to idaturgutinal__portfolio-tracker

Function bodies 201 total

All specs Real LLM only Function bodies
formatDate function · typescript · L42-L48 (7 LOC)
src/utils/format.ts
export function formatDate(date: Date | string, locale = "en-US"): string {
  return new Intl.DateTimeFormat(locale, {
    year: "numeric",
    month: "short",
    day: "numeric",
  }).format(new Date(date));
}
‹ prevpage 5 / 5