Product Documentation

c-treeDB API for C++ - Developers Guide

Previous Topic

Next Topic

CTField::GetFieldDefaultDateType

Retrieves the default value date type.

Declaration

CTDATE_TYPE CTField::GetFieldDefaultDateType();

Description

CTField::GetFieldDefaultDateType() retrieves the default value date type used when converting strings to dates. The default value date type is returned.

Return

Value

Symbolic Constant

Explanation

1

CTDATE_MDCY

Date format is mm/dd/ccyy

2

CTDATE_MDY

Date format is mm/dd/yy

3

CTDATE_DMCY

Date format is dd/mm/ccyy

4

CTDATE_DMY

Date format is dd/mm/yy

5

CTDATE_CYMD

Date format is ccyymmdd

6

CTDATE_YMD

Date format is yymmdd

Example

TYPE parameters;


if (FunctionTemplate(parameters))

printf("\nFunction error = %d",uerr_cod);

See Also

SetFieldDefaultValue(), GetFieldDefaultValue(), IsFieldDefaultValueSet(), ClearAllFieldDefaultValue(), SetFieldDefaultDateTimeType(), GetFieldDefaultDateType(), GetFieldDefaultTimeType()

TOCIndex