You are here: User interface > Controls > Standard controls > Selecting the date and time format and display mode

Selecting the date and time format and display mode

You can specify which date and time element selectors are displayed on the form at run time. For example, you can display a calendar widget with a corresponding text input field or display drop-down fields for selecting the month, day, and year.

Prerequisite: Add a DateTime control to a layout.

  1. On the Presentation tab of the Properties panel, use the Specify size option to specify the width of the control:

  2. Set the Date/Time option to one of the following settings:

  3. Use the Display mode list to specify how dates and times are displayed in your application. Your choice for the Date/Time option determines which settings are available for the display mode.

  4. Optional: To refine the display of the date and time, select one or more of the following options. Your choice for the Display mode option determines which options are available.

  5. For the Allow text entry option, click Yes (default) to enable the user to enter a text value in the field or click No to prevent text entry.