Time Intrinsic Functions - AsDisplayString Method

Convert the variable to a formatted string

Member of Time Intrinsic Functions (PRIM_LIBI.ITimeIntrinsics)


Name Type Data Type Description
Result *Result (Optional) String Resulting string
Format *Input (Optional) Enumeration Format of the time


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

Allowed Formats

Enum Value Description
HHMMSS e.g. "123456"
HHsMMsSS e.g. "12:34:56"
ISO e.g. "12:34:56"


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

See also

All Component Classes

Technical Reference

LANSA Version 15, April 2020