1189
Views
17
Comments
Solved
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.


2022-03-01 15-42-44
Thiago Mari
Champion

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

2022-03-01 15-42-44
Thiago Mari
Champion

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

2022-03-01 15-42-44
Thiago Mari
Champion

just like this image


2022-09-27 05-23-26
Mohammad Shoeb

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/

UserImage.jpg
Rajesh shaganti

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  

2022-09-15 08-29-00
Rakshitha U

Hi Shoeb,

Can you Share the OML for above datedropper Sample, its very useful for me.


Regards, 

Rakshitha

2022-03-01 15-42-44
Thiago Mari
Champion

Like that?

2020-01-03 05-37-58
JEYASRI R

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


2022-03-01 15-42-44
Thiago Mari
Champion

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


2020-01-03 05-37-58
JEYASRI R

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


2022-03-01 15-42-44
Thiago Mari
Champion

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

2020-01-03 05-37-58
JEYASRI R

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

2022-03-01 15-42-44
Thiago Mari
Champion

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



2022-03-01 15-42-44
Thiago Mari
Champion

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

UserImage.jpg
Rajesh shaganti
Solution
2022-03-01 15-42-44
Thiago Mari
Champion

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

2021-02-17 15-40-32
Sheila Gonzalez

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.