Time Intrinsic Functions - AsDisplayString Method

Convert the variable to a formatted string

Member of Time Intrinsic Functions (PRIM_LIBI.ITimeIntrinsics)

Parameters

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

Details

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

Allowed Formats

Enum ValueDescription
HHMMSSe.g. "123456"
HHsMMsSSe.g. "12:34:56"
ISOe.g. "12:34:56"

Example

In this example, the time 12:34:56 would return the value "123456"
#Result := #Time.AsDisplayString( HHMMSS )

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2