Skip to content

Modern Chrono LocalDate ToIsoString

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

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

LocalDate.ToIsoString

Returns the date as text in the form 2026-08-13, or empty text if it is Invalid.

Syntax

LocalDate.ToIsoString

Examples

#import "std/chrono"
using chrono

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

'' Always zero-padded to YYYY-MM-DD, so it sorts as text in the same
'' order it sorts as a date
print LocalDate( 1, 1, 1 ).ToIsoString( )          '' 0001-01-01

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

Clone this wiki locally