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
Here is an example of creating a list of months:
String[] months = new DateFormatSymbols().getMonths(); List allMonths = new ArrayList(); for(String singleMonth: months){ allMonths.add(singleMonth); } System.out.println(allMonths);