@Test public void testGetDateUsingCompleteDateFormat() { String dateFormatString = "'xzy_tds_'yyyyMMdd_HHmm'_junk.grib'"; Date date = DateFromString.getDateUsingCompleteDateFormat(fileName, dateFormatString); System.out.printf("date = %s%n", date); Assert.assertEquals("Calculated date <" + date.toString() + " [" + date.getTime() + "]> not as expected <" + dateAsISOString + "[" + dateAsLong + "]>." + "\nUsing fileName <" + fileName + "> and dateFormatString <" + dateFormatString + ">", date.getTime(), dateAsLong); }
public static Date getDateUsingCompleteDateFormat(String dateString, String dateFormatString) { return getDateUsingCompleteDateFormatWithOffset(dateString, dateFormatString, 0); }
DateFromString { public static Date getDateUsingCompleteDateFormat(String dateString, String dateFormatString) { return getDateUsingCompleteDateFormatWithOffset(dateString, dateFormatString, 0); } }
DateFromString { public static Date getDateUsingCompleteDateFormat(String dateString, String dateFormatString) { return getDateUsingCompleteDateFormatWithOffset(dateString, dateFormatString, 0); }  }
DateFromString { public static Date getDateUsingCompleteDateFormat(String dateString, String dateFormatString) { return getDateUsingCompleteDateFormatWithOffset(dateString, dateFormatString, 0); }  static Date getDateUsingSimpleDateFormat(String dateString, String dateFormatString); static Date getDateUsingDemarkatedCount(String dateString, String dateFormatString, char demark); static Date getDateUsingDemarkatedMatch(String dateString, String dateFormatString, char demark); static Date getDateUsingCompleteDateFormat(String dateString, String dateFormatString); static Date getDateUsingCompleteDateFormatWithOffset(String dateString, String dateFormatString,
      int startIndex); static Date getDateUsingRegExp(String dateString, String matchPattern, String substitutionPattern); static Date getDateUsingRegExpAndDateFormat(String dateString, String matchPattern, String substitutionPattern,
      String dateFormatString); }
DateFromString { public static Date getDateUsingCompleteDateFormat(String dateString, String dateFormatString) { return getDateUsingCompleteDateFormatWithOffset(dateString, dateFormatString, 0); }  static Date getDateUsingSimpleDateFormat(String dateString, String dateFormatString); static Date getDateUsingDemarkatedCount(String dateString, String dateFormatString, char demark); static Date getDateUsingDemarkatedMatch(String dateString, String dateFormatString, char demark); static Date getDateUsingCompleteDateFormat(String dateString, String dateFormatString); static Date getDateUsingCompleteDateFormatWithOffset(String dateString, String dateFormatString,
      int startIndex); static Date getDateUsingRegExp(String dateString, String matchPattern, String substitutionPattern); static Date getDateUsingRegExpAndDateFormat(String dateString, String matchPattern, String substitutionPattern,
      String dateFormatString);  }