Converts a .NET DateTime to a numeric date value used by Excel.

Namespace:  XllPlus.ComWrappers.Runtime
Assembly:  XllPlus.ComWrappers.Runtime (in XllPlus.ComWrappers.Runtime.dll) Version: 6.3.4.831 (6.3.4.0831)

Syntax

C#
protected double DateToExcel(
	DateTime dt
)
Visual Basic (Declaration)
Protected Function DateToExcel ( _
	dt As DateTime _
) As Double
Visual C++
protected:
double DateToExcel(
	DateTime dt
)

Parameters

dt
Type: System..::.DateTime
Date and time to be converted to an Excel numeric value.

Return Value

A numeric value representing the date in Excel.

Remarks

The implementation of this method is delegated to the implementation class instance, as returned by GetImpl.

See Also