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

Function formatAbsoluteDate

packages/utils/src/formatting.ts:97–106  ·  view source on GitHub ↗
(dateString: string)

Source from the content-addressed store, hash-verified

95 * @returns A formatted date string (e.g., "Jan 22, 2026, 01:30 PM")
96 */
97export function formatAbsoluteDate(dateString: string): string {
98 const date = new Date(dateString)
99 return date.toLocaleDateString('en-US', {
100 year: 'numeric',
101 month: 'short',
102 day: 'numeric',
103 hour: '2-digit',
104 minute: '2-digit',
105 })
106}
107
108/**
109 * Format a time into a short format

Callers 2

BaseCardFunction · 0.90
formatting.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected