DbiDateDecode

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

DbiDateDecode

Return to chapter overview

C syntax

DBIResult DBIFN DbiDateDecode (dateD, piMon, piDay, piYear);

Delphi syntax

function DbiDateDecode (dateD: DbiDate; var iMon: Word; var iDay: Word; var iYear: SmallInt): DBIResult stdcall;

Description

DbiDateDecode decodes DBIDATE into separate month, day, and year components.

Parameters

dateD                Type: DBIDATE                (Input)
Specifies the encoded date.

piMon                Type: pUINT16                (Output)
Pointer to the client variable that receives the decoded month component. Valid values range from 1 through 12.

piDay                Type: pUINT16                (Output)
Pointer to the client variable that receives the decoded day component. Valid values range from 1 through 31.

piYear                Type: pINT16                (Output)
Pointer to the client variable that receives the decoded year component. Valid values range from -9999 to 9999.

Usage

This call enables the client to interpret date information returned from a call to DbiGetField.

DbiResult

Meaning

DBIERR_NONE

The date was decoded successfully.

DBIERR_INVALIDHNDL

At least one of the following parameters is NULL: piMon, piDay, piYear.

See also

DbiGetField, DbiDateEncode, DbiTimeEncode, DbiTimeDecode, DbiTimeStampEncode, DbiTimeStampDecode