Skip to content

Modern Chrono DateTime IsoWeekYear

Paul Squires edited this page Oct 19, 2026 · 1 revision

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

DateTime.IsoWeekYear

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

Syntax

DateTime.IsoWeekYear

Examples

#import "std/chrono"
using chrono

dim as DateTime d = DateTime( 2026, 8, 13, 14, 30, 5, 123 )
print d.IsoWeekYear          '' 2026

'' It differs from Year at the turn of the year, which is the whole
'' reason it exists
dim as DateTime j = DateTime( 2027, 1, 1, 0, 0, 0, 0 )
print j.Year & " but ISO week-year " & j.IsoWeekYear      '' 2027 but 2026

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

Clone this wiki locally