Product Documentation

FairCom DB API for C

Previous Topic

Next Topic

ctdbDateTimeGetDate

Retrieve a CTDATE type value from a CTDATETIME type value

NOTE: See ctdbDateTimeGetDateMsec() if you need millisecond precision.

Declaration

CTDBRET ctdbDateTimeGetDate(CTDATETIME DateTime, pCTDATE pDATE)

Description

ctdbDateTimeGetDate() retrieves a CTDATE type value from a CTDATETIME type value.

  • DateTime [in] the packed date and time value.
  • pDate [out] the CTDATE value.

Returns

ctdbDateTimeGetDate() returns CTDBRET_OK on success, or FairCom DB API error on failure.

See also

ctdbDateTimeSetDate(), ctdbDateTimeGetTime(), ctdbDateTimeGetTimeMsec

TOCIndex