public static String formatCellContent(String value, int numFmtIndex, String numFmtString) {
		if (null != numFmtString) {
			try {
				value = new DataFormatter().formatRawCellContents(Double.parseDouble(value), numFmtIndex, numFmtString);
			} catch (NumberFormatException e) {
				// ignore
			}
		}
		return value;
	}
public static String formatCellContent ( String value , int numFmtIndex , String numFmtString ) { if ( null != numFmtString ) { try { value = new DataFormatter ( ) . formatRawCellContents ( Double . parseDouble ( value ) , numFmtIndex , numFmtString ) ; } catch ( NumberFormatException e ) { } } return value ; }
格式化数字或日期值

@param value 值
@param numFmtIndex 数字格式索引
@param numFmtString 数字格式名
@return 格式化后的值