Skip to main content

Table of Contents

Date time (calendar) control

Applicable to Theme UI-Kit applications

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 Configure User Interface Gallery UI elements .

  • Understanding the Date, TimeofDay, 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 dates that are displayed for selection.

Related Content


Did you find this content helpful?

Have a question? Get answers now.

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

Ready to crush complexity?

Experience the benefits of Pega Community when you log in.

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

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us