26
Views
5
Comments
data picker format date
Question

i have data picker date time and i want to select just year how i can?

2023-02-26 23-17-33
Kshitij Raheja

Hi Moheman,

You can use the below component:
https://www.outsystems.com/forge/component-overview/10919/yearpicker

Hope this helps
Kshitij Raheja

2023-03-20 08-36-01
moheman aldulimy

i don't want download new component i need anther solution 

2019-09-30 07-35-56
Aurelio Junior

Hello,

I don't think that's possible with the DatePicker pattern. But if you want the user to select only a year, then maybe it doesn't even make sense to use a DatePicker. Wouldn't using a simple dropdown will the years make more sense?

2024-05-08 06-29-37
Prince Aadil Khan Panwar

Hi 

you can set the format in date picker which you want to set .

but you have to select date for that

result- 

or as @Kshitij Raheja suggested try to download that forge component. or 

i can suggest you to create by default year list in oninitialize action and assign the values into the drop down

hope this will help

Regards,

Prince


2024-05-08 06-29-37
Prince Aadil Khan Panwar

take help from the oml for dynamic year list. 

Regards,

Prince

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