Skip to main content

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

This content has been archived and is no longer being updated.

Links may not function; however, this content may be relevant to outdated versions of the product.

Date time (calendar) control

Updated on April 5, 2022

To present a date, time, or both on a form, use the Date time control. You can modify the control features to improve user experience by making date and time selection simple and intuitive. For example, you can choose to display the calendar widget with spinners to make it easier to switch between months and years.

The starting point for your control is the standard, autogenerated control pxDateTime. For more information, see the Pega Community article Make user selection of valid dates easier with Date time control options.

The UI Gallery landing page contains a working example of this element. To display the gallery, in Dev Studio, click ConfigureUser InterfaceGallery UI elements.

  • Understanding the Date, Time of Day, and DateTime property types.

    A single application can be deployed worldwide. To support varied needs for time zones and locales, three different property types are available: Date, TimeofDay, and DateTime.

  • Evaluation of symbolic dates

    You can use symbolic dates for values of Date and DateTime properties in reports. Some symbolic dates identify a single day, such as Yesterday or Tomorrow. Other symbolic dates define a period (an inclusive range of dates), such as Current Month or Previous Quarter.

  • Java date pattern

    A Java date pattern is a sequence of one or more letters that controls the presentation of a date, or date and time. For example, the pattern MM/dd/yyyy is a request for a date to be presented in the format 07/04/1976 for July 4, 1976.

  • Adding a Date time control to a layout

    Add a Date time control to a layout, so that application users will be able to select dates, times, or both. You can configure the calendar control, to adjust it to the users' needs, make data entering easier and reduce possibility of mistakes. For example, you can limit the available dates by disabling weekend days or by restricting the range of

  • Controls

    Use control rules to determine the appearance of a single property, such as a button or drop-down field, on a form.

  • Accessing the UI Gallery

    Explore sample, guardrail-compliant design patterns that have been built by using the various features and layouts of Pega Platform.

  • Previous topic Specifying presentation options for a Button control
  • Next topic Understanding the Date, TimeofDay, and DateTime property types

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. is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us