How can I build a list of days, months, years from a calendar object in Java?

前端 未结 5 775
闹比i
闹比i 2021-01-06 14:46

I want to build a date widget for a form, which has a select list of months, days, years. since the list is different based on the month and year, i cant hard code it to 31

5条回答
  •  迷失自我
    2021-01-06 15:38

    There are a number of date picker implementations out there for java, which can be used via swing or a web ui. I would attempt to reuse one of these and avoid writing your own.

提交回复
热议问题