Skip to content

Modern Chrono LocalDate IsFirstDayOfMonth

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

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

LocalDate.IsFirstDayOfMonth

Returns true if the date is the first day of its month.

Syntax

LocalDate.IsFirstDayOfMonth

Examples

#import "std/chrono"
using chrono

print LocalDate( 2026, 8, 1 ).IsFirstDayOfMonth      '' true
print LocalDate( 2026, 8, 13 ).IsFirstDayOfMonth     '' false

'' Reads better than `d.Day = 1` at a call site, and pairs with
'' IsLastDayOfMonth, which cannot be written as simply

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

Clone this wiki locally