Date time (calendar) control
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
.- 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