Skip to content

Modern Chrono LocalDate StartOfMonth

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

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

LocalDate.StartOfMonth

Returns the first day of the date's month.

Syntax

LocalDate.StartOfMonth

Examples

#import "std/chrono"
using chrono

dim as LocalDate d = LocalDate( 2026, 8, 13 )

print d.StartOfMonth( ).ToIsoString( )   '' 2026-08-01

'' Already the first day, so it is a no-op there
print LocalDate( 2026, 8, 1 ).StartOfMonth( ).ToIsoString( )    '' 2026-08-01

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

Clone this wiki locally