Skip to content

Modern Chrono LocalDate EndOfMonth

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

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

LocalDate.EndOfMonth

Returns the last day of the date's month.

Syntax

LocalDate.EndOfMonth

Examples

#import "std/chrono"
using chrono

print LocalDate( 2026, 8, 13 ).EndOfMonth( ).ToIsoString( )     '' 2026-08-31

'' February needs the calendar, which is the point of having this
print LocalDate( 2024, 2, 1 ).EndOfMonth( ).ToIsoString( )      '' 2024-02-29
print LocalDate( 2025, 2, 1 ).EndOfMonth( ).ToIsoString( )      '' 2025-02-28

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

Clone this wiki locally