Skip to content

Modern Chrono DateTime DayOfWeek

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

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

DateTime.DayOfWeek

Returns the day of the week, 1 for Monday to 7 for Sunday.

Syntax

DateTime.DayOfWeek

Examples

#import "std/chrono"
using chrono

dim as DateTime d = DateTime( 2026, 8, 13, 14, 30, 5, 123 )
'' ISO NUMBERING: Monday 1 through Sunday 7
print d.DayOfWeek            '' 4 -- a Thursday
print DateTime.WeekdayName( d.DayOfWeek )        '' Thursday

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

Clone this wiki locally