XLL+ Class Library (7.0)

CXlFuncs::DateValue

Returns the serial number of the date represented by date_text

static int DateValue(
   double& ddt,
   LPCTSTR date_text
);
static int DateValue(
   long& ldt,
   LPCTSTR date_text
);

Parameters

ddt

A reference to a value that will contain a serial date if the function succeeds.

date_text

A string containing a date.

ldt

A reference to a value that will contain a serial date if the function succeeds.

Return Value

Zero if the function has been called successfully; non-zero if the function could not be called. See Error codes for a list of return values.

Remarks

See the Microsoft Excel on-line Help for full details about this function.

Requirements

Header: xlfuncs.h

See Also

CXlFuncs Class | CXlFuncs Methods