gantt-renderer
    Preparing search index...

    Function formatWeekNumber

    • Formats a week number according to the specified scheme.

      • 'iso': ISO 8601 (week 1 contains the first Thursday; Monday start).
      • 'us': Week 1 contains January 1; Sunday start.
      • 'simple': Math.ceil(dayOfYear / 7).

      Parameters

      • date: Date

        The date to compute the week number for.

      • scheme: "iso" | "us" | "simple"

        The week numbering scheme: 'iso', 'us', or 'simple'.

      Returns number

      The week number as a positive integer.