Formats a date string into a human-readable format
ISO date string (YYYY-MM-DD or YYYY-MM-DDTHH:mm:ss)
Whether to include relative time (e.g., "3d ago")
Formatted date string in "Month Day, Year" format, optionally with relative time
formatDate('2025-01-01') // "January 1, 2025"formatDate('2025-01-01', true) // "January 1, 2025 (3d ago)" Copy
formatDate('2025-01-01') // "January 1, 2025"formatDate('2025-01-01', true) // "January 1, 2025 (3d ago)"
Formats a date string into a human-readable format