Product Documentation

c-treeDB API for C# - Developers Guide

Previous Topic

Next Topic

CTDate.DateToString

Syntax

String DateToString(DATE_TYPE DateType)

Parameters

  • DateType [in] The date type format used to convert to string. The valid date type formats are defined using the DATE_TYPE enum as shown in the following table.

The possible date formats for string conversion are:

c-treeDB
Symbolic Constant

c-treeDB .NET
Symbolic Constant


Description

CTDATE_MDCY

MDCY_DATE

Date is mm/dd/ccyy

CTDATE_MDY

MDY_DATE

Date is mm/dd/yy

CTDATE_DMCY

DMCY_DATE

Date is dd/mm/ccyy

CTDATE_DMY

DMY_DATE

Date is dd/mm/yy

CTDATE_CYMD

CYMD_DATE

Date is ccyymmdd

CTDATE_YMD

YMD_DATE

Date is yymmdd

Description

Converts a packed CTDATE type value to a String object.

Return

DateToString() returns a String object with the date.

See Also

StringToDate()

TOCIndex