XLL+ Class Library (6.3)

CXlFuncs::Date

Returns the serial number of a particular date

static int Date(
   double& ddt,
   long year,
   long month,
   long day
);
static int Date(
   long& ldt,
   long year,
   long month,
   long day
);

Parameters

ddt

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

year

A number between 1900 and 9999.

month

A positive month number, generally between 1 and 12.

day

A positive day number, generally between 1 and 31.

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