DATETIME 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 of both a date and a time of day.
Syntax
DATETIME( )
Remarks
A component with the DATE data type can parse, validate, and display both date and time user input. The DATETIME keyword specifies that the component contains both a date and a time. If the user specifies only a time, the date defaults to December 30, 1999. If the user specifies only a date, the time defaults to 12:00 AM (Midnight). Formats are those specified in Regional Settings in the Windows Control Panel. The date precedes the time, and the two are separated by a space. Example: 03/29/00 08:32:00 AM.
The value of a component returned by a script consists of both a date and a time in the format displayed in the component.
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())