Year from Datepicker

Year from Datepicker

  

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

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

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

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

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.