### Question:
DateTimeUtil { public static Date parseUTCDateToDate(String utcDate) { return ISODateTimeFormat.dateParser().parseDateTime(utcDate).toDate(); }  static Date parseUTCDateToDate(String utcDate); static Date parseUTCToDate(String utcDate); static DateTime parseUTCToDateTime(String utcDate); static String formatDateToUTC(Date date); final static DateTimeFormatter utcFormatter; final static DateTimeFormatter utcYMDFormatter; }### Answer:
@Test public void utcToDateTest() throws Exception { Date plainDate = DateTimeUtil.parseUTCDateToDate("2001"); DateTime date = new DateTime(plainDate.getTime()); assertEquals(2001, date.getYear()); plainDate = DateTimeUtil.parseUTCDateToDate("2001-05-08"); date = new DateTime(plainDate.getTime()); assertEquals(2001, date.getYear()); assertEquals(5, date.getMonthOfYear()); assertEquals(8, date.getDayOfMonth()); try { plainDate = DateTimeUtil.parseUTCDateToDate("2002-02-01T12:13:14"); fail(); } catch (IllegalArgumentException e) { } }