TIME keyword

Applies to

Form components with the data type DATE

Property defaults with the data type DATE

Component properties: Data type and format

Description

Specifies that the value of a component with the DATE data type consists only of a time of day.

Syntax

TIME( )

Remarks

A component with the DATE data type can parse, validate, and display both date and time user input. The TIME keyword specifies that the component contains only a time of day. With TIME specified, the value of a component returned by a script is a time, although the property to which the component is bound may contain both a date and a time.

The keyword can serve as a parameter of the DEFAULTFORMAT keyword in data-type specifications. See DEFAULTFORMAT, DATE, and DATETIME in Related Topics.

Example

With the following data-type specification, a component displays only a time, and it parses and validates only the time portion of user input.

DATATYPE(DATE) DEFAULTFORMAT(TIME())

Rubriques liées