Skip to content

Modern Chrono LocalDate IsoWeekYear

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

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

LocalDate.IsoWeekYear

Returns the year the ISO week belongs to, which can differ from Year near New Year.

Syntax

LocalDate.IsoWeekYear

Examples

#import "std/chrono"
using chrono

'' The year the ISO WEEK belongs to, which is not always the calendar
'' year: a week belongs to the year containing its Thursday.
dim as LocalDate jan1 = LocalDate( 2027, 1, 1 )

print jan1.Year              '' 2027
print jan1.IsoWeekYear       '' 2026 -- that week's Thursday is in 2026

'' Always use it WITH IsoWeek. "Week 53" alone is ambiguous.

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

Clone this wiki locally