MCPcopy Index your code
hub / github.com/simstudioai/sim / formatDate

Function formatDate

packages/utils/src/formatting.ts:84–90  ·  view source on GitHub ↗
(date: Date)

Source from the content-addressed store, hash-verified

82 * @returns A formatted date string in the format "MMM D, YYYY"
83 */
84export function formatDate(date: Date): string {
85 return date.toLocaleDateString('en-US', {
86 year: 'numeric',
87 month: 'short',
88 day: 'numeric',
89 })
90}
91
92/**
93 * Formats a date string to absolute format for tooltip display

Callers 5

utils.test.tsFile · 0.90
RecentlyDeletedFunction · 0.90
formatLastUsedFunction · 0.90
formatLastUsedFunction · 0.90
formatting.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected