XLL+ Class Library (6.3)

ple::clr::toClrDate

Transform an Excel date value to a CLR DateTime value

System::DateTime^ toClrDate(
   double datetime
);
System::DateTime^ toClrDate(
   long date
);

Parameters

datetime

A numeric date/time value received from Excel.

date

An integer date value received from Excel.

Return Value

A CLR object, that may be passed directly to a .NET method, using C++/CLI.

Requirements

Header: xlpclrconvert.h

See Also

Common Language Runtime support functions | toClr | toClrDates