how do i enable to choose years and months on date picker 
Question

Hi all,

Good day.

i want enable year and month selection on date picker

how  do i achieve this.


just for clarify, you want to do what? switch month or year? Or Just select the month or year from calendar?

I ask that, because when you select the date from InputCalendar, you already selecting the month and year too

just like this image


Rajesh shaganti wrote:

Hi all,

Good day.

i want enable year and month selection on date picker

how  do i achieve this.


hi Rajest,

try this it may be helpful 

https://jogait.outsystemscloud.com/Datedropper_Sample/

shoeb khan wrote:

Rajesh shaganti wrote:

Hi all,

Good day.

i want enable year and month selection on date picker

how  do i achieve this.


hi Rajest,

try this it may be helpful 

https://jogait.outsystemscloud.com/Datedropper_Sample/

thanks reply me

I want year drop down and month drop down user has select year and month from the drop down  

Like that?

Thiago Mari wrote:

Like that?

Hai ,


In this input calendar widget displayed year 2009 to 2019 but I want to display the  all year list on date picker. 

how  do i achieve this.Any one help me 


Thanks,
jeyasri


JEYASRI R wrote:

Thiago Mari wrote:

Like that?

Hai ,


In this input calendar widget displayed year 2009 to 2019 but I want to display the  all year list on date picker. 

how  do i achieve this.Any one help me 


Thanks,
jeyasri


Hi,


You can set the maxYear or just write in input.


Hope to help


Thiago Mari wrote:

JEYASRI R wrote:

Thiago Mari wrote:

Like that?

Hai ,


In this input calendar widget displayed year 2009 to 2019 but I want to display the  all year list on date picker. 

how  do i achieve this.Any one help me 


Thanks,
jeyasri


Hi,


You can set the maxYear or just write in input.


Hope to help


Hai thanks for reply,
here is not display maxYear then how I set that value


JEYASRI R wrote:

Thiago Mari wrote:

JEYASRI R wrote:

Thiago Mari wrote:

Like that?

Hai ,


In this input calendar widget displayed year 2009 to 2019 but I want to display the  all year list on date picker. 

how  do i achieve this.Any one help me 


Thanks,
jeyasri


Hi,


You can set the maxYear or just write in input.


Hope to help


Hai thanks for reply,
here is not display maxYear then how I set that value


Hi,




In MinYear, you can put any year, and the MaxYear you can put 

Year(CurrDate())


This is the way to get the current year.


Cheers

Thiago Mari wrote:

JEYASRI R wrote:

Thiago Mari wrote:

JEYASRI R wrote:

Thiago Mari wrote:

Like that?

Hai ,


In this input calendar widget displayed year 2009 to 2019 but I want to display the  all year list on date picker. 

how  do i achieve this.Any one help me 


Thanks,
jeyasri


Hi,


You can set the maxYear or just write in input.


Hope to help


Hai thanks for reply,
here is not display maxYear then how I set that value


Hi,




In MinYear, you can put any year, and the MaxYear you can put 

Year(CurrDate())


This is the way to get the current year.


Cheers


Hai,
I am using datepicker not a richwidget


Regards,
Jeyasri

JEYASRI R wrote:

Thiago Mari wrote:

JEYASRI R wrote:

Thiago Mari wrote:

JEYASRI R wrote:

Thiago Mari wrote:

Like that?

Hai ,


In this input calendar widget displayed year 2009 to 2019 but I want to display the  all year list on date picker. 

how  do i achieve this.Any one help me 


Thanks,
jeyasri


Hi,


You can set the maxYear or just write in input.


Hope to help


Hai thanks for reply,
here is not display maxYear then how I set that value


Hi,




In MinYear, you can put any year, and the MaxYear you can put 

Year(CurrDate())


This is the way to get the current year.


Cheers


Hai,
I am using datepicker not a richwidget


Regards,
Jeyasri

Hi,

It's the same way, if you look, you have the MinDate and maxDate, you can put the date or the code i send.


Cheers



To open a menu (year or month) just click and hold in arrow

Don't need use noting from forge, it's too easy to do

I had the same problem and found the solution in this url: https://success.outsystems.com/Documentation/11/Reference/OutSystems_Language/Interfaces/Patterns/Date_Picker_Reference.

It's pretty simple...I needed the datepicker to select a date of birth and wanted to have a 100 year range so I just needed to go to the datepicker properties, select AdvancedFormat field and enter this

"{ yearRange: [1910, 2021] }"
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.