Skip to main content

 

Front-End

 

 

OutSystems

How to have a date picker with year selection

  • Edit
    Collaborate with us
    Edit this page on GitHub
  • 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:

    image alt text

    The widget should appear as follows:

    image alt text

    • Was this article helpful?