@Test public void parseDateUTC() { DateTime dateTime = DateUtil.parseDateUTC("2002-07-02"); assertNotNull(dateTime); assertThat(dateTime.getDayOfMonth(), is(2)); assertThat(dateTime.getYear(), is(2002)); assertThat(dateTime.getMonthOfYear(), is(7)); }
public static DateTime parseDateUTC(String eventDate) { String firstInRange = splitPossibleRange(eventDate); return ISODateTimeFormat.dateTimeParser().withZoneUTC().parseDateTime(firstInRange); }
DateUtil { public static DateTime parseDateUTC(String eventDate) { String firstInRange = splitPossibleRange(eventDate); return ISODateTimeFormat.dateTimeParser().withZoneUTC().parseDateTime(firstInRange); } }
DateUtil { public static DateTime parseDateUTC(String eventDate) { String firstInRange = splitPossibleRange(eventDate); return ISODateTimeFormat.dateTimeParser().withZoneUTC().parseDateTime(firstInRange); }  }
DateUtil { public static DateTime parseDateUTC(String eventDate) { String firstInRange = splitPossibleRange(eventDate); return ISODateTimeFormat.dateTimeParser().withZoneUTC().parseDateTime(firstInRange); }  static String printDate(Date date); static String printYear(Date date); static DateTime parseYearUTC(String dateString); static DateTime parseYearMonthUTC(String dateString); static DateTime parsePatternUTC(String dateString, String pattern); static DateTime parseDateUTC(String eventDate); static String splitPossibleRange(String eventDate); static String nowDateString(); }
DateUtil { public static DateTime parseDateUTC(String eventDate) { String firstInRange = splitPossibleRange(eventDate); return ISODateTimeFormat.dateTimeParser().withZoneUTC().parseDateTime(firstInRange); }  static String printDate(Date date); static String printYear(Date date); static DateTime parseYearUTC(String dateString); static DateTime parseYearMonthUTC(String dateString); static DateTime parsePatternUTC(String dateString, String pattern); static DateTime parseDateUTC(String eventDate); static String splitPossibleRange(String eventDate); static String nowDateString();  }