742
Views
6
Comments
Solved
Year from Datepicker
Question

I have an entity with attribute year of type Integer. Is it possible to show datepicker and just return the year when a date is clicked?

thank you,

regards,

bb

2018-11-06 14-26-44
Suraj Borade
Solution

You can use function Year() and pass selected date to it and it will return you just year.

UserImage.jpg
Saravana Kumar Sivaraj

Suraj Borade wrote:

You can use function Year() and pass selected date to it and it will return you just year.


Hi Suraj,

             Can you share the OML for that.


Thanks,

Saravana

2018-06-15 00-21-10
Pedro Vila Nova

Saravana Kumar Sivaraj wrote:

Suraj Borade wrote:

You can use function Year() and pass selected date to it and it will return you just year.


Hi Suraj,

             Can you share the OML for that.


Thanks,

Saravana


Hi Saravana


Test my OML


Best regards,

PVN

TestPicker.oml
2016-08-14 15-21-18
Jogait

I think you need to use a component to do that like datedropper.

2018-11-06 14-26-44
Suraj Borade
Solution

You can use function Year() and pass selected date to it and it will return you just year.

UserImage.jpg
Saravana Kumar Sivaraj

Suraj Borade wrote:

You can use function Year() and pass selected date to it and it will return you just year.


Hi Suraj,

             Can you share the OML for that.


Thanks,

Saravana

2018-06-15 00-21-10
Pedro Vila Nova

Saravana Kumar Sivaraj wrote:

Suraj Borade wrote:

You can use function Year() and pass selected date to it and it will return you just year.


Hi Suraj,

             Can you share the OML for that.


Thanks,

Saravana


Hi Saravana


Test my OML


Best regards,

PVN

TestPicker.oml
2020-06-08 02-42-28
Wasabi

Thank u for the reply. How to open the datepicker as the input widget is of type Integer? Tq

2016-08-14 15-21-18
Jogait

If you need a layout that only shows the year i suggest you use a component like the one i mentioned before, if you only need to get the year from a selected date a suggest you use the Suraj Borade solution.


I think that the input needs to be text type.

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