XLL+ Class Library (6.3)

CXlFuncs::Month

Returns the number of the month for a date

static int Month(
   double& dmonth,
   long serial_number
);
static int Month(
   long& lmonth,
   long serial_number
);
static int Month(
   short int& shmonth,
   long serial_number
);

Parameters

dmonth

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

serial_number

An Excel serial date value.

lmonth

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

shmonth

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