XLL+ Class Library

CXlFuncs::Day

Returns the day of the month for a date

[C++]
static int Day(
   double& dday,
   long serial_number
);
static int Day(
   long& lday,
   long serial_number
);
static int Day(
   short int& shday,
   long serial_number
);

Parameters

dday

A reference to a value that will contain a day number (between 1 and 31) if the function succeeds.

serial_number

An Excel serial date value.

lday

A reference to a value that will contain a day number (between 1 and 31) if the function succeeds.

shday

A reference to a value that will contain a day number (between 1 and 31) 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