Search Results for

    Show / Hide Table of Contents

    FlxDateTime.TryToOADate Method

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

    Syntax

    Namespace: FlexCel.Core

    public static Boolean TryToOADate(DateTime value, Boolean Dates1904, out Double ResultDate)

    Parameters

    <-> Parameter Type Description
    value DateTime DateTime you want to convert.
    Dates1904 Boolean When true dates start at 1904 (pre-OSX macs) instead of 1900 (Windows)
    out ResultDate Double Returns the value as double on Excel format. Note that this value will be valid even if the date was an invalid OLE Automation date and the result from this method is false.

    Returns

    True if conversion was successful, false otherwise.

    See also

    • FlxDateTime
    In This Article
    Back to top FlexCel Studio for the .NET Framework v7.24.0.0
    © 2002 - 2025 tmssoftware.com