if ( resultObject instanceof Date ) { try { resultOp1 = DataTypeUtil.toDate( resultOp1 ); resultOp2 = DataTypeUtil.toDate( resultOp2 ); } catch ( BirtException e ) { throw new DataException( ResourceConstants.DATATYPEUTIL_ERROR, e ); } }
	private static boolean between( Object resultObject, Object resultOp1,			Object resultOp2 ) throws DataException	{		// For "Date between String and String		// First we should convert all operands to Date		if ( resultObject instanceof Date )		{			try			{				resultOp1 = DataTypeUtil.toDate( resultOp1 );				resultOp2 = DataTypeUtil.toDate( resultOp2 );			}			catch ( BirtException e )			{				throw new DataException( ResourceConstants.DATATYPEUTIL_ERROR,						e );			}		}				Object min, max;		if ( compare( resultOp1, resultOp2 ) <= 0 )		{			min = resultOp1;			max = resultOp2;		}		else		{			min = resultOp2;			max = resultOp1;		}		return compare( resultObject, min ) >= 0				&& compare( resultObject, max ) <= 0;	}