EssentialsDateTime.ToOADate method

Version 1.1.28
.NET Framework 4.8
Namespace Skybrud.Essentials.Time
Assembly Skybrud.Essentials.dll

ToOADate()

Converts the value of the internal DateTime object to the equivalent OLE Automation date.

public double ToOADate()

Returns

A double-precision floating-point number that contains an OLE Automation date equivalent to the value of this instance.

Exceptions

The value of this instance cannot be represented as an OLE Automation Date.