Dev Roar Lab API Documentation - v1.6.0
    Preparing search index...
    • Formats a date string into a human-readable format

      Parameters

      • date: string

        ISO date string (YYYY-MM-DD or YYYY-MM-DDTHH:mm:ss)

      • includeRelative: boolean = false

        Whether to include relative time (e.g., "3d ago")

      Returns string

      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)"