Bug 145741 Could not set the value of Boolean parameter as 0 or 1
Description: Could not set the value of report scalar boolean parameter as 0 or 1. Steps to reproduce: 1.Create a report parameter, boolean type, Combo Box display type. 2.Add the value as 0, failed. Expect result: Could set integer value to boolean type parameter.
core/org.eclipse.birt.core/src/org/eclipse/birt/core/data/DataTypeUtil.java
String key = String.valueOf( dateStyle ) +":"+ String.valueOf( timeStyle ) +":"+locale.getName( ) ;
		DateFormat result = (DateFormat)dateTimeholder.get( key );
		if( result == null )
		{
			result = DateFormat.getDateTimeInstance( dateStyle, timeStyle, locale );
			dateTimeholder.put( key, result );
		}
		return result;
	}
	
	/**
	 * 
	 * @param dateStyle
	 * @param locale
	 * @return
	 */
	public static DateFormat getDateInstance( int dateStyle, ULocale locale )
	{
		String key = String.valueOf( dateStyle ) +":"+locale.getName( );
		
		DateFormat result = (DateFormat)dateHolder.get( key );
		if( result == null )
		{
			result = DateFormat.getDateInstance( dateStyle, locale );
			dateHolder.put( key, result );
		}
		return result;
	}
}