Date control

The Date control is a spinner control for specifying date/time values, which include dates, times, and datetimes. The Date control has the following properties:

Identifier. The unique identifier for the control. This is the identifier to use when referencing the control in the syntax template.

Title. An optional title that appears with the control. For multi-line titles or long titles, click the ellipsis (...) button and enter your title in the Title Property dialog.

Title Position. Specifies the position of the title relative to the control. Values are Top and Left where Top is the default.

ToolTip. Optional ToolTip text that appears when the user hovers over the control.

Mnemonic Key. An optional character in the title to use as a keyboard shortcut to the control. The character appears underlined in the title. The shortcut is activated by pressing Alt+[mnemonic key]. The Mnemonic Key property is not supported on Mac.

Type. Specifies whether the control is for dates, times, or datetime values.
Date
The control specifies a calendar date of the form yyyy-mm-dd. The default run time value is specified by the Default Value property.
Time
The control specifies the time of day in the form hh:mm:ss. The default run time value is the current time of day.
Datetime
The control specifies a date and time of the form yyyy-mm-dd hh:mm:ss. The default run time value is the current date and time of day.

Default Value. The default run time value of the control when the type is Date. You can specify to display the current date or a particular date.

Syntax. Specifies the command syntax that is generated by this control at run time and can be inserted in the syntax template.

  • You can specify any valid command syntax. For multi-line syntax or long syntax, click the ellipsis (...) button and enter your syntax in the Syntax Property dialog.
  • The value %%ThisValue%% specifies the run time value of the control. This is the default.

Enabling Rule. Specifies a rule that determines when the current control is enabled. Click the ellipsis (...) button to open the Enabling Rule dialog box and specify the rule. The Enabling Rule property is visible only when other controls that can be used to specify an enabling rule exist on the canvas.

Note: The Date control is not available in compatibility mode.