Home / Function/ formatDate() — ui Function Reference

formatDate() — ui Function Reference

Architecture documentation for the formatDate() function in calendar-28.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  601d1854_fc6e_cf2d_0675_2a49ffec3f8c["formatDate()"]
  9e980e1e_4689_2724_2703_ce75e5a7fd43["calendar-28.tsx"]
  601d1854_fc6e_cf2d_0675_2a49ffec3f8c -->|defined in| 9e980e1e_4689_2724_2703_ce75e5a7fd43
  b7b052b8_3a16_0930_8e81_b09e4b5cef64["Calendar28()"]
  b7b052b8_3a16_0930_8e81_b09e4b5cef64 -->|calls| 601d1854_fc6e_cf2d_0675_2a49ffec3f8c
  style 601d1854_fc6e_cf2d_0675_2a49ffec3f8c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

deprecated/www/registry/new-york/blocks/calendar-28.tsx lines 16–26

function formatDate(date: Date | undefined) {
  if (!date) {
    return ""
  }

  return date.toLocaleDateString("en-US", {
    day: "2-digit",
    month: "long",
    year: "numeric",
  })
}

Subdomains

Called By

Frequently Asked Questions

What does formatDate() do?
formatDate() is a function in the ui codebase, defined in deprecated/www/registry/new-york/blocks/calendar-28.tsx.
Where is formatDate() defined?
formatDate() is defined in deprecated/www/registry/new-york/blocks/calendar-28.tsx at line 16.
What calls formatDate()?
formatDate() is called by 1 function(s): Calendar28.

Analyze Your Own Codebase

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

Try Supermodel Free