DATE keyword

Applies To

Form components with the data type DATE

Property defaults with the data type DATE

Component properties: Data format

Description

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

Syntax

DATE( )

Remarks

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

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

Example

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

DATATYPE(DATE) DEFAULTFORMAT(DATE())

Related topics