Skip to content

Modern Chrono DateTime FromSerial

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

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

DateTime.FromSerial

Creates a date-time from a date serial, the days since 1899-12-30.

Syntax

DateTime.FromSerial( float64 )

Examples

#import "std/chrono"
using chrono

'' The OLE/BASIC serial date: days since 1899-12-30, fractional
dim as DateTime d = DateTime.FromSerial( 46247.6042 )

print d.Year & "-" & d.Month           '' 2026-8
print DateTime.FromSerial( 0 ).ToIsoString( )      '' 1899-12-30T00:00:00

'' The pair to the Serial property, for talking to Excel, ADO and
'' anything else built on the same convention

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

Clone this wiki locally