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

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

Syntax

C#
DateTime DateFromExcel(
	double d
)
Visual Basic (Declaration)
Function DateFromExcel ( _
	d As Double _
) As DateTime
Visual C++
DateTime DateFromExcel(
	double d
)

Parameters

d
Type: System..::.Double
An Excel numeric value to be converted to .NET DateTime.

Return Value

A .NET DateTime equivalent to the Excel date/time value.

Remarks

This method handles the case where the Excel base date has been to a value other than the standard OADate value.

See Also