Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Configuring a Date Time field

Updated on October 21, 2022
Applicable to Cosmos React applications

Standardize date and time formats and reduce the number of input mistakes by using a Date Time field. When you set up a Date Time field, you ensure that users enter scheduling information in the right format.

For example, for scheduling appointments, you can set up a one hour default step, so that a user cannot schedule a meeting that starts at quarter past an hour.
  1. In the navigation pane of App Studio, click Case types, and then click the case type that you want to open.
  2. On the User interface tab, click the column-based view that you want to edit.
  3. In the Edit view section, click the Configure icon next to the Date Time field that you want to edit.
  4. Configure standard field settings, such as visibility and labels.
    For more information, see Configuring common field settings.
  5. In the Edit field dialog box, in the Clock list, define the format in which you want to display the time:
    • To use the default format of the language of the application, select use locale.
    • To use a 12-hour clock, select 12 hours.
    • To use a 24-hour clock, select 24 hours.
  6. Optional: To include seconds on the field clock, select Display seconds.
  7. Define the range of dates that are available in your field:
    1. In the Next field, enter how many years into the future the field displays.
    2. In the Previous field, enter how many years into the past the field displays.
  8. Optional: To include week numbers on the field calendar, select Display week numbers on calendar.
  9. In the Time picker list, define the length of the step between time values in the field.
  10. Optional: To display the field value as text, in the Read-only settings section, select the Show as formatted text check box.
  11. In the Format list, select how you want to display the value of your field:
    • To use the default format (Feb 3, 2021, 10:27 AM), select Default.
    • To use the abbreviated format (Feb 3, 2021), select Date.
    • To display time lapsed since the date associated with the field (2 years ago), select Since.
    • To display only the hour associated with the field (10:27 AM), select Time only.
  12. In the Edit field dialog box, click Save.

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us