Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbGetDay

Retrieve the day of the month from a packed CTDATE.

Declaration

NINT ctdbGetDay(CTDATE date)

Description

ctdbGetDay() retrieves the day of the month from as packed CTDATE. To retrieve the month from a packed CTDATE, use ctdbGetMonth(). To retrieve the year from a packed CTDATE, use ctdbGetYear(). To retrieve the day of the week from a packed CTDATE, use ctdbDayOfWeek().

  • date is the date in CTDATE format.

Returns

ctdbGetDay() returns the day of the month on success or 0 on error.

See also

ctdbGetMonth(), ctdbGetYear(), ctdbDayOfWeek()

TOCIndex