Primefaces calendar component show only month and year

后端 未结 12 1903
南笙
南笙 2020-12-14 03:25

primefaces calendar component is getting Date by default. Can I get only month and year without dates.

How to get only month and year

12条回答
  •  余生分开走
    2020-12-14 03:34

    I was reading and you cant achieve this functionality out from the box from Primefaces.

    https://code.google.com/p/primefaces/issues/detail?id=3453

    The question is old but the latest comments from one month ago. So they use this approach:

    jQuery UI DatePicker to show month year only

    There is also the solution to only use and bild what you need out of it.

    Cheers

提交回复
热议问题