Converts a .NET DateTime to a numeric date value used by Excel.
            
    Namespace: 
   XllPlus.ComWrappers.RuntimeAssembly: XllPlus.ComWrappers.Runtime (in XllPlus.ComWrappers.Runtime.dll) Version: 7.0.9.1411 (7.0.9.1411)
Syntax
| C# | 
|---|
public double DateToExcel( DateTime dt )  | 
| Visual Basic (Declaration) | 
|---|
Public Function DateToExcel ( _ dt As DateTime _ ) As Double  | 
| Visual C++ | 
|---|
public: virtual double DateToExcel( DateTime dt ) sealed  | 
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.Implements
IExcelWrapperEngine..::.DateToExcel(DateTime)IWrapperEngine..::.DateToExcel(DateTime)
Remarks
This method handles the case where the Excel base date has 
            been to a value other than the standard OADate value.