Datetime Intrinsic Functions - AsDisplayString Method

Convert the variable to a formatted string

Member of Datetime Intrinsic Functions (PRIM_LIBI.IDateTimeIntrinsics)

Parameters

NameTypeData TypeDescription
Result*Result (Optional)StringResulting string
Format*Input (Optional)EnumerationFormat of the datetime

Details

AsDisplayString returns the supplied date formatted using one of the available supplied date formats.

Allowed Formats

Enum ValueDescription
CCYYDDMMHHMMSSe.g. "20143112123456"
CCYYMMDDHHMMSSe.g. "20141231123456"
HHMMSSbSysFmt6e.g. "123456 311214""
HHMMSSbSysFmt8e.g. "123456 31122014"
HHMMSSDDMMCCYYe.g. "12345631122014"
HHMMSSDDMMYYe.g. "123456311214"
Localized_SQLe.g. "2014-12-31 22:34:56.000000000"
Localized_TZe.g. "2014-12-31T22:34:56.000000000+10:00"
SQLe.g. "2014-12-31 12:34:56.000000000"
SysFmt6bHHMMSSe.g. "311214 123456"
SysFmt8bHHMMSSe.g. "31122014 123456"
TZ e.g. "2014-12-31T12:34:56.000000000Z"

Example

In this example, the date and time 2014-12-31 12:34:56 would return the value "20141231123456"
#Result := #Today.AsDisplayString( CCYYDDMMHHMMSS )

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2