Home / Function/ formatDate() — supabase Function Reference

formatDate() — supabase Function Reference

Architecture documentation for the formatDate() function in utils.ts from the supabase codebase.

Entity Profile

Relationship Graph

Source Code

apps/design-system/lib/utils.ts lines 5–12

export function formatDate(input: string | number): string {
  const date = new Date(input)
  return date.toLocaleDateString('en-US', {
    month: 'long',
    day: 'numeric',
    year: 'numeric',
  })
}

Domain

Subdomains

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free