Previous Topic: Basic Elements of a FormNext Topic: Dual List


Date Time Field

You can use the Date Time Field (an advanced element) when you create and maintain forms.

Date Time Field

As an administrator, you can set the format of the date and time, using the Date Time field.

The date and time that appear on the Form Designer match the date and time of the browser that you are using to access CA Service Catalog. Similarly, the date and time that appear to other users accessing the form match the date and time of their browsers. Therefore, the date and time of form settings—even on the same forms—can differ between users, especially users in different time zones. This principle applies whether users access the form through the Form Designer or while requesting a service.

Date

Use the date portion of this field whenever date information is required, for example, Start Date, End Date, Date Required, Estimated Date of Arrival, Date Received, and so forth. When users click the date field, a calendar appears and they can select a date, using the month and year tabs to move quickly forwards or backwards from the current month or year.

By default, the date format for the Date Time field matches the date format of the current business unit.

Note: As an administrator, you can optionally change the default format for the business unit to a different format: Edit the profile of the business unit on the Administration, Business Units page and select a new date format. Examples include M/d/yyyy, d-M-yyyy, or yyyy/M/d.

Specify date formats in Date Time fields on your forms according to the following rules:

Letter

Meaning

Format

Example

y

year

Number

2009

M

month in year

Text or Number

July or 07

d

day in month

Number

10

CA Service Catalog supports the date format attributes supplied with the Google Web Toolkit (GWT) 1.6. For more information about these attributes, see the Google website, www.google.com.

Time

Use the time portion of the Date Time field whenever time information is required, for example, Start Time, End Time, Estimated Time of Arrival, and so forth. When you use the time portion of this field, a drop-down list of time values appears next to the calendar. Users can select a time from this list, using the scroll bar on the list to move quickly to a time earlier or later than the current time.

By default, the time format for the Date Time field matches the time format of the business unit of the user.

Note: As an administrator, you can optionally change the default format for the business unit to a different format: Edit the profile of the business unit on the Administration, Business Units page and select a new time format.

Specify time formats in Date Time fields on your forms according to the following rules:

Format

Separator

HH:mm

colon (:)

HH.mm

period (.)

If the Hide Time attribute is set to true, then the time portion of the field is hidden. Consequently, this time format is ignored. The drop-down list for selecting the time does not appear on the form.

Otherwise, the field accepts valid values separated by a space. CA Service Catalog supports the time format attributes supplied with the Google Web Toolkit (GWT) 1.6. For more information about these attributes, see the Google web site, www.google.com.

For example, you can optionally add literal values enclosed in quotation marks (such as "hours" or "minutes") before or after the hour (HH) and minute (mm) values.

Use the HTML attributes named hidetime and increment to control whether and how incremented time values appear in each Date Time field on a form.