Skip to main content
OutSystems

How to have a date picker with year selection

Question

I want an input_calendar widget to enter a date of birth, which could easily be many years ago.

The standard input_calendar widget doesn't allow the direct selection of the year.

Answer

Use the component DatePicker from the OutSystems Forge.

The component uses the jQuery plugin DatePicker, which has options to select the month and the year through drop down menus.

You must modify the plugin to add the options changeMonth and changeYear, as shown below:

date picker.png

The widget should appear as follows:

date picker2.png

  • Was this article helpful?