Code example for DateFormat

Methods: parse

0
        List l = new ArrayList((Collection)  timeKvpParser.parse("2007-01-29T12Z,2007-01-12T12Z," +
        		"2007-01-17T12Z,2007-01-01T12Z,2007-01-05T12Z")); 
        // Verify that the list contains at least one element. 
        assertFalse(l.isEmpty());
        assertTrue(l.size()==5);
        assertEquals(format.parse("2007-01-01T12Z"),(Date) l.get(0));
        assertEquals(format.parse("2007-01-05T12Z"),(Date) l.get(1));
        assertEquals(format.parse("2007-01-12T12Z"),(Date) l.get(2));
        assertEquals(format.parse("2007-01-17T12Z"),(Date) l.get(3));
        assertEquals(format.parse("2007-01-29T12Z"),(Date) l.get(4));
         
         
    } 
}