Skip to content

Modern Chrono DateTime FromDate

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

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

DateTime.FromDate

Returns a date-time at midnight on the given date.

Syntax

DateTime.FromDate( date )

Examples

#import "std/chrono"
using chrono

dim as LocalDate ld = LocalDate( 2026, 8, 13 )
dim as DateTime d = DateTime.FromDate( ld )

print d.ToIsoString( )       '' 2026-08-13T00:00:00 -- midnight
print d.Hour                 '' 0

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

Clone this wiki locally