src/org/tiefaces/components/websheet/dataobjects/CellMap.java
private String assembleNewValue(final Object value,
			final FacesCell facesCell) {
		String newValue;
		if (value instanceof java.util.Date) {
			String datePattern = facesCell.getDatePattern();
			if (datePattern == null || datePattern.isEmpty()) {
			    datePattern = parent.getDefaultDatePattern();
			}
			Format formatter = new SimpleDateFormat(datePattern);
			newValue = formatter.format(value);
		} else {
			newValue = (String) value;
		}
		if ("textarea".equalsIgnoreCase(facesCell.getInputType())
				&& (newValue != null)) {
			// remove "\r" because excel issue
			newValue = newValue.replace("\r\n", "\n");
		}
		return newValue;
	}
private String assembleNewValue(final Object value,
			final FacesCell facesCell) {
		String newValue;
		if (value instanceof java.util.Date) {
			String datePattern = facesCell.getDatePattern();
			if (datePattern == null || datePattern.isEmpty()) {
			    datePattern = parent.getDefaultDatePattern();
			}
			Format formatter = new SimpleDateFormat(datePattern);
			newValue = formatter.format(value);
		} else {
			newValue = (String) value;
		}
		if ("textarea".equalsIgnoreCase(facesCell.getInputType())
				&& (newValue != null)) {
			// remove "\r" because excel issue
			newValue = newValue.replace("\r\n", "\n");
		}
		return newValue;
	}
private String assembleNewValue ( final Object value , final FacesCell facesCell ) { String newValue ; if ( value instanceof java . util . Date ) { String datePattern = facesCell . getDatePattern ( ) ; if ( datePattern == null || datePattern . isEmpty ( ) ) { datePattern = parent . getDefaultDatePattern ( ) ; } Format formatter = new SimpleDateFormat ( datePattern ) ; newValue = formatter . format ( value ) ; } else { newValue = ( String ) value ; } if ( "textarea" . equalsIgnoreCase ( facesCell . getInputType ( ) ) && ( newValue != null ) ) { // remove "\r" because excel issue
 newValue = newValue . replace ( "\r\n" , "\n" ) ; } return newValue ; }
Assemble new value.

@param value
the value
@param facesCell
the faces cell
@return the string
Assemble new value .