Skip to content

Modern Chrono DateTime GetDate

Paul Squires edited this page Oct 19, 2026 · 1 revision

Home › Date and Time (Chrono) › Chrono Date and Time › DateTime.GetDate

DateTime.GetDate

Returns the date part as a LocalDate, dropping the time and the offset.

Syntax

DateTime.GetDate

Examples

#import "std/chrono"
using chrono

dim as DateTime d = DateTime( 2026, 8, 13, 14, 30, 5, 123 )
dim as LocalDate ld = d.GetDate( )

print ld.ToIsoString( )      '' 2026-08-13
print ld.DayOfWeek           '' 4

'' The time of day and the offset are dropped -- pair it with
'' GetTimeOfDay to take the whole value apart

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

Clone this wiki locally