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
public static Date toDateWithCheck( String source, Locale locale )
			throws BirtException
	{
		return toDateWithCheck( source, ULocale.forLocale( locale ));
	}
	
	/**
	 * Convert string to date with check.
	 * JDK may do incorrect converse, for example:
	 * 		2005/1/1 Local.US, format pattern is MM/dd/YY.
	 * Above conversion can be done without error, but obviously
	 * the result is not right. This method will do such a simple check,
	 * in DateFormat.SHORT case instead of all cases.
	 * 		Year is not lower than 0.
	 * 		Month is from 1 to 12.
	 * 		Day is from 1 to 31.  
	 * @param source
	 * @param locale
	 * @return Date
	 * @throws BirtException
	 */
	public static Date toDateWithCheck( String source, ULocale locale )
			throws BirtException
	{
		DateFormat dateFormat = DateFormatHolder.getDateInstance( DateFormat.SHORT,
				locale );
		Date resultDate = null;
		try
		{
			resultDate = dateFormat.parse( source );