Product Documentation

FairCom DB API for C

Previous Topic

Next Topic

ctdbSetDefDateType

Set the default date type.

Declaration

CTDBRET ctdbSetDefDateType(CTHANDLE Handle, CTDATE_TYPE DateType)

Description

ctdbSetDefDateType() sets the default date type for the present session. Initially, the default is CTDATE_MDCY, indicating month, day, century, year (4 digits for the year). The possible date types are given in the Date Type Formats table in Date Types. Use ctdbGetDefDateType() to retrieve the default date type.

  • Handle [in] any FairCom DB API Handle.
  • DateType [in] a valid date type. Valid types are listed in the Date Type Formats table in Date Types.

Returns

ctdbSetDefDateType() returns CTDBRET_OK on success, or FairCom DB API C API error code on failure.

See also

ctdbGetDefDateType()

TOCIndex