Skip to content

Modern Chrono LocalDate AddDays

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

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

LocalDate.AddDays

Returns the date moved by a number of days.

Syntax

LocalDate.AddDays( n )

Examples

#import "std/chrono"
using chrono

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

print d.AddDays( 10 ).ToIsoString( )     '' 2026-08-23
print d.AddDays( -13 ).ToIsoString( )    '' 2026-07-31 -- crosses the month

'' IMMUTABLE: this returns a NEW value and does not modify the receiver
d.AddDays( 100 )
print d.ToIsoString( )                   '' 2026-08-13, unchanged

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

Clone this wiki locally