else if ( source instanceof Boolean ) { throw new BirtException( ResourceConstants.CONVERT_FAILS, "Date", resourceBundle ); } else if ( source instanceof Date ) { return new Date( ( (Date) source ).getTime( ) ); } else if ( source instanceof Double ) { long longValue = ( (Double) source ).longValue( ); return new Date( longValue ); } else if ( source instanceof String ) { return toDate( (String) source  ); } else throw new BirtException( ResourceConstants.CONVERT_FAILS, "Date", resourceBundle );
	private static Date toDate( String source )			throws BirtException	{		try		{			//Try to format the given String for JRE default Locale			return toDate( source, Locale.getDefault( ) );		}		catch ( BirtException e )		{			//format the String for Locale.US			return toDate( source, DEFAULT_LOCALE );		}	}