XLL+ Class Library

::XlWeekday

Convert a date to a day of the week

[C++]
int XlWeekday(
   long date,
   int* day
);

Parameters

date

An integer serial date value.

day

Pointer to a variable which will be filled with an integer between 1 (Monday) and 7 (Sunday).

Return value

1 if the function succeeds; 0 if it fails

Remarks

This function calls Excel's WEEKDAY() function with 2 as its second argument.

Requirements

Header: xlldate.h

See Also

Global date functions