text: public String formatNumberDateCell(CellValueRecordInterface cell) {double value;if (cell instanceof NumberRecord) {value = ((NumberRecord) cell).getValue();} else if (cell instanceof FormulaRecord) {value = ((FormulaRecord) cell).getValue();} else {throw new IllegalArgumentException("Unsupported CellValue Record passed in " + cell);}int formatIndex = getFormatIndex(cell);String formatString = getFormatString(cell);if (formatString == null) {return _defaultFormat.format(value);}return _formatter.formatRawCellContents(value, formatIndex, formatString);}