Bug 210720 [Automation][Acceptance]Date is displayed as datetime when export report to XLS
Description: Date is displayed as datetime when export report to XLS. Test Date: 20071123 Test Build: BIRT2.3.0 Daily Build: v20071123-0800 Step to reproduce: 1. Use the report attached 2. Export the report to XLS Expect Result: Date should be displayed as date type Actual Result: Date is displayed as datetime.
engine/org.eclipse.birt.report.engine.emitter.prototype.excel/src/org/eclipse/birt/report/engine/emitter/excel/ExcelUtil.java
{
    	   return Data.CALENDAR;	
    	}
    	else if(val instanceof CDateTime)
    	{
    	   return Data.CDATETIME;	
    	}
    	else 
    	{
    	   return Data.STRING;	
    	}
    }
      
    private static String replaceDateFormat( String pattern )
	{
		if ( pattern == null )
		{
			String rg = "";
			return rg;
		}
		StringBuffer toAppendTo = new StringBuffer( );
		boolean inQuote = false;
		char prevCh = 0;
		int count = 0;
		for ( int i = 0; i < pattern.length( ); ++i )
		{
			char ch = pattern.charAt( i );
			if ( ch != prevCh && count > 0 )
			{
				toAppendTo.append( subReplaceDateFormat( prevCh, count ) );