Table of Contents

TFlxDateTime.TryFromOADate Method

Converts a Double on Excel format for dates (Ole Automation Format) into a DateTime.

Syntax

Unit: FlexCel.Core

class function TFlxDateTime.TryFromOADate(value: Double; const Dates1904: Boolean; out ResultDate: TDateTime): Boolean; static;

Parameters

<-> Parameter Type Description
value Double Double you want to convert.
const Dates1904 Boolean When true dates start at 1904 (pre-OSX macs) instead of 1900 (Windows)
out ResultDate TDateTime Returns the value as DateTime.

Returns

True if conversion was successful, false otherwise.

See also