@Test
public void testGetDate() throws Exception {

    ISODate isoDate = new ISODate("2013-10-10T13:20:00Z");
    assertEquals("2013-10-10", isoDate.getDateAsString());
    isoDate = new ISODate("2019-01");
    assertEquals("2019-01", isoDate.getDateAsString());
    isoDate = new ISODate("2019");
    assertEquals("2019", isoDate.getDateAsString());
}