Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbGetMonth

Retrieve the month of the year from a packed CTDATE.

Declaration

NINT ctdbGetMonth(CTDATE date)

Description

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

  • date is the date in CTDATE format.

Returns

ctdbGetMonth() returns the month of the year on success or 0 on error.

See also

ctdbGetDay(), ctdbGetYear()

TOCIndex