Skip to main content


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

Date time (calendar) control

Updated on November 15, 2021
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 ConfigureUser InterfaceGallery 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.

  • Previous topic Text area control - Presentation tab
  • 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.

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

Close Deprecation Notice
Contact us