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);}

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 ) ; }
public String FormatNumberDateCell(CellValueRecordInterface cell){double value;if (cell is NumberRecord){value = ((NumberRecord)cell).Value;}else if (cell is FormulaRecord){value = ((FormulaRecord)cell).Value;}else{throw new ArgumentException("Unsupported CellValue Record passed in " + cell);}int formatIndex = GetFormatIndex(cell);String formatString = GetFormatString(cell);if (formatString == null){return value.ToString(CultureInfo.InvariantCulture);}else{return formatter.FormatRawCellContents(value, formatIndex, formatString);}}
