Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbDayOfWeek

Retrieve the day of the week from a packed CTDATE.

Declaration

NINT ctdbDayOfWeek(CTDATE date)

Description

ctdbDayOfWeek() retrieves the number of the day of the week from a packed CTDATE. Sunday is 0, Monday is 1, Tuesday is 2, Wednesday is 3, Thursday is 4, Friday is 5 and Saturday is 6. To retrieve the day of the month, use ctdbGetDay().

  • date [in] the date, in CTDATE format.

Returns

ctdbDayOfWeek() returns the number of the day of the week, or -1 on error.

See also

ctdbGetDay()

TOCIndex