XLL+ Class Library (6.3)

CXlFuncs::Days360

Returns the number of days between two dates based on a 360-day year

static int Days360(
   double& ddays,
   long start_date,
   long end_date,
   bool european_method = false
);
static int Days360(
   long& ldays,
   long serial_number,
   long start_date,
   long end_date,
   bool european_method = false
);

Parameters

ddays

A reference to a value that will contain a day count if the function succeeds.

start_date

An Excel serial date value.

end_date

An Excel serial date value.

european_method

True for european day count method; false for the US method.

ldays

A reference to a value that will contain a day count 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