calendar.set( Calendar.MILLISECOND, 450 );
calendar.set( Calendar.MILLISECOND, 45 );
	public void testToDate1( )	{		String[] testStrings = {"1997",				"1997-07",				"1997-07-16",				"1997-07-16T19:20+02",				"1997-07-16T19:20:30GMT+01:00",				"1997-07-16T19:20:30.45+01:00",				"1997-07-16 19:20+01:00",				"1997-07-16 19:20:30+01:00",				"1997-07-16 19:20:30.45+01:00",				"1997-07-16 19:20:30.45 GMT+01:00"};		Calendar calendar = Calendar.getInstance( );				Date[] resultDates = {				null,				null,				null,				null,				null,				null,				null,				null,				null,				null		};		calendar.clear();		calendar.set(1997,0,1);		resultDates[0] = calendar.getTime( );		calendar.set(1997,6,1);		resultDates[1] = calendar.getTime( );		calendar.set(1997,6,16);		resultDates[2] = calendar.getTime( );		calendar.set(1997,6,16,19,20,0);		resultDates[3] = calendar.getTime( );		calendar.set(1997,6,16,19,20,30);		resultDates[4] = calendar.getTime( );		calendar.set(1997,6,16,19,20,30);		calendar.set( Calendar.MILLISECOND, 450 );		resultDates[5] = calendar.getTime( );		calendar.set(1997,6,16,19,20,0);		calendar.set( Calendar.MILLISECOND, 0 );		resultDates[6] = calendar.getTime( );		calendar.set(1997,6,16,19,20,30);		resultDates[7] = calendar.getTime( );		calendar.set(1997,6,16,19,20,30);		calendar.set( Calendar.MILLISECOND, 450 );		resultDates[8] = calendar.getTime( );		resultDates[9] = resultDates[8];				for ( int i = 0; i < testStrings.length; i++ )		{			try			{				Date dateResult = DataTypeUtil.toDate( testStrings[i] );				System.out.println( "i:" + i );				System.out.println( dateResult );				System.out.println( resultDates[i] );				System.out.println();				System.out.println(dateResult.getTime( ));				System.out.println(resultDates[i].getTime( ));				assertEquals( dateResult, resultDates[i] );			}			catch ( BirtException e )			{				fail( "Should not throw Exception." );			}					}	}