Skip to main content

 –

Restricting the years displayed

Suggest edit Updated on December 1, 2021
Applicable to Theme Cosmos applications

Ensure that users enter dates that are relevant to the application. By restricting the range of available dates, you help users provide correct data, and reduce the number of input and processing errors.

Before you begin: Add a Date Time control to the layout.

For more information, see Adding UI components to a view.

  1. Open the view with the control that you want to edit.
    For more information, see Accessing views in your application.
  2. In the configuration pane on the right side of the window, hover over the control, and then click the Edit icon.
  3. On the Presentation tab, set the range of dates that you want to display:
    1. Select the Next check box, and then specify how many future years to display in the calendar.
    2. Select the Previous check box, and then specify how many past years to display in the calendar.
      By default, the control restricts dates to 10 years before and after the current date.
  4. Click Apply.
Did you find this content helpful? YesNo

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

Close Deprecation Notice
Contact us