Skip to content

Modern Chrono DateTime Serial

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

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

DateTime.Serial

Returns the date-time as a date serial: days since 1899-12-30, with a fraction.

Syntax

DateTime.Serial

Examples

#import "std/chrono"
using chrono

dim as DateTime d = DateTime( 2026, 8, 13, 14, 30, 5, 123 )
'' The OLE/BASIC serial: days since 1899-12-30, fractional
print int( d.Serial )        '' 46247

print DateTime.FromSerial( d.Serial ).Day        '' 13 -- round trips

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

Clone this wiki locally