554
Views
8
Comments
Solved
Date Picker year selection
Question

Hello.

Please let us know if you know.


I implemented it referring to the following site, but there is one problem.

https://success.outsystems.com/Documentation/How-to_Guides/Front-End/How_to_have_a_date_picker_with_year_selection 


Only the last 10 years are displayed in the dropdown year selection.

Setting MinDate and MaxDate has the same result.


Is there a way to display all past years?


2021-08-12 11-00-27
Nordin Ahdi
 
MVP
Solution

Hi Akari,

It is possible to set a yearRange in the jQuery expression of the DatePicker like below.

This will result in more year options at runtime.

Hope this helps!

Regards,

Nordin

UserImage.jpg
Akari Ukai

Nordin Ahdi wrote:

Hi Akari,

It is possible to set a yearRange in the jQuery expression of the DatePicker like below.

This will result in more year options at runtime.

Hope this helps!

Regards,

Nordin

 Nordin


It went well.

Thank you very much!

 

UserImage.jpg
Saravana Kumar Sivaraj

Hi Akari,


Could you please provide me the sample oml for that.


Thanks,

Saravana

2025-11-19 06-14-01
Miguel Verdasca
Champion

Hi,

if you already read this information:


And you haven't sucess, please let us know, what kind of app you are working (mobile, web, reactive)? And what is your version of envirionmente?


If you can share the OML will be perfect.

Thank you :)

2021-08-12 11-00-27
Nordin Ahdi
 
MVP
Solution

Hi Akari,

It is possible to set a yearRange in the jQuery expression of the DatePicker like below.

This will result in more year options at runtime.

Hope this helps!

Regards,

Nordin

UserImage.jpg
Akari Ukai

Nordin Ahdi wrote:

Hi Akari,

It is possible to set a yearRange in the jQuery expression of the DatePicker like below.

This will result in more year options at runtime.

Hope this helps!

Regards,

Nordin

 Nordin


It went well.

Thank you very much!

 

UserImage.jpg
Saravana Kumar Sivaraj

Hi Akari,


Could you please provide me the sample oml for that.


Thanks,

Saravana

2021-08-12 11-00-27
Nordin Ahdi
 
MVP

You're welcome :)

UserImage.jpg
jdpalacios

You can also find the use case in this documentation

UserImage.jpg
Gowtham Raj

Document is not available. Could please share me if you have any other doument ?

2021-08-19 14-35-09
Mukesh Kumar Chejara

Hi, This is the simplest way to show the years. By adding code in AdvancedFormat.

100 is just a static value which can be changed as per requirement.


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.