Skip to content

Modern Chrono LocalDate IsoWeek

Paul Squires edited this page Oct 19, 2026 · 5 revisions

Home › Date and Time (Chrono) › Chrono Date and Time › LocalDate.IsoWeek

LocalDate.IsoWeek

Returns the ISO week number, 1 to 53; pair it with IsoWeekYear.

Syntax

LocalDate.IsoWeek

Examples

#import "std/chrono"
using chrono

'' The ISO 8601 week number, 1 to 53. A week belongs to the year that
'' holds its THURSDAY, which is why this and IsoWeekYear come as a pair.
print LocalDate( 2026, 8, 13 ).IsoWeek      '' 33

'' The first days of January can fall in the last week of the previous
'' ISO year
dim as LocalDate jan1 = LocalDate( 2027, 1, 1 )
print jan1.IsoWeek & " of " & jan1.IsoWeekYear      '' 53 of 2026

Library: Chrono Date and Time
Category: Date and Time (Chrono)
Documented under: The Members

Clone this wiki locally