@Test(enabled=true) public void testFormat2() { final String s1 = "2017-01-01"; final String s2 = "20170101"; Date d1 = DateMath.parse(s1); assertEquals(s2, DateMath.format2(d1)); }
public static String format2(Date d) { DateFormat df = new SimpleDateFormat(FORMAT2); return df.format(d); }
DateMath { public static String format2(Date d) { DateFormat df = new SimpleDateFormat(FORMAT2); return df.format(d); } }
DateMath { public static String format2(Date d) { DateFormat df = new SimpleDateFormat(FORMAT2); return df.format(d); }  }
DateMath { public static String format2(Date d) { DateFormat df = new SimpleDateFormat(FORMAT2); return df.format(d); }  static Date addDays(Date d, int howMany); static Date addMonths(Date d, int howMany); static Date parse(String str); static String format(Date d); static String format2(Date d); static Date truncateToMonth(Date d); static Date truncateToDay(Date d); static Date addSeconds(Date d, int howMany); static Date max(Date d1, Date d2); }
DateMath { public static String format2(Date d) { DateFormat df = new SimpleDateFormat(FORMAT2); return df.format(d); }  static Date addDays(Date d, int howMany); static Date addMonths(Date d, int howMany); static Date parse(String str); static String format(Date d); static String format2(Date d); static Date truncateToMonth(Date d); static Date truncateToDay(Date d); static Date addSeconds(Date d, int howMany); static Date max(Date d1, Date d2);  }