Return the day of week (1=SUN .. 7=SAT) for the given YMD date.
Synopsis
Declared in <bdlt_posixdateimputil.h>
static
int
ymdToDayOfWeek(
int year,
int month,
int day);
Description
Return, as an integer (with 1 = SUN, 2 = MON, ..., and 7 = SAT), the day (of the week) of the date value indicated by the specified year, month, and day. The behavior is undefined unless true == isValidYearMonthDay(year, month, day).
Return Value
day of week in [1 .. 7]
Parameters
Name |
Description |
year |
calendar year |
month |
month of year |
day |
day of month |
Created with MrDocs