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# |
|---|
double DateToExcel( DateTime dt ) |
| Visual Basic (Declaration) |
|---|
Function DateToExcel ( _ dt As DateTime _ ) As Double |
| Visual C++ |
|---|
double DateToExcel( DateTime dt ) |
Parameters
- dt
- Type: System..::.DateTime
Date and time to be converted to an Excel numeric value.