Skip to content

Modern Chrono DateTime IsoWeek

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

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

DateTime.IsoWeek

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

Syntax

DateTime.IsoWeek

Examples

#import "std/chrono"
using chrono

dim as DateTime d = DateTime( 2026, 8, 13, 14, 30, 5, 123 )
'' ISO 8601 week number. A week belongs to the year holding its
'' THURSDAY, so this and IsoWeekYear come as a pair.
print d.IsoWeek              '' 33
print d.IsoWeekYear          '' 2026

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

Clone this wiki locally