kaven-basic - v6.0.0
    Preparing search index...

    Function GetWeekOfYear

    • Calculates the week number of the year for a given date.

      Parameters

      • date: Date

        The date for which to determine the week number.

      • Optionaliso: boolean

        Optional. If true, calculates the ISO 8601 week number (weeks start on Monday, week 1 is the week with the first Thursday of the year). If false or omitted, calculates the week number based on the local calendar (weeks start on Sunday).

      Returns number

      The week number of the year for the given date.

      • When iso is true, the calculation follows the ISO 8601 standard.
      • When iso is false or not provided, the calculation is based on the local calendar and may differ from ISO week numbers.

      2.0.14

      2021-08-06