/** * @return The first entry of {@link #getExcelDateFormats()} if exists, otherwise YYYY-MM-DD (ISO date format). */ public String getDefaultExcelDateFormat() { final String[] sa = getExcelDateFormats(); if (sa != null && sa.length > 0) { return sa[0]; } else { return DateFormats.EXCEL_ISO_DATE; } }
public static void createExcelDateFormat(final GridBuilder gridBuilder, final PFUserDO user) { addDateFormatCombobox(gridBuilder, user, "dateFormat.xls", "excelDateFormat", Configuration.getInstance().getExcelDateFormats(), true); }