@Test public void testFormatOnlyDay() { Calendar calendar = Calendar.getInstance(); calendar.set(2017, 8, 27, 14, 15, 18); String obtainedStr = DateUtils.formatOnlyDay(calendar.getTime()); String expectedStr = "27/09/2017"; assertThat(obtainedStr, is(expectedStr)); }
public static String formatOnlyDay(Date date) { return csvOnlyDayFormat.format(date); }
DateUtils { public static String formatOnlyDay(Date date) { return csvOnlyDayFormat.format(date); } }
DateUtils { public static String formatOnlyDay(Date date) { return csvOnlyDayFormat.format(date); }  }
DateUtils { public static String formatOnlyDay(Date date) { return csvOnlyDayFormat.format(date); }  static String formatCompleteDate(Date date); static String formatOnlyDay(Date date); static String formatFilenameDate(Date date); static String formatDateForMongo(Date date); static String getDuration(Date dateBegin, Date dateEnd); static Date getLastTimeFromDate(Date date); }
DateUtils { public static String formatOnlyDay(Date date) { return csvOnlyDayFormat.format(date); }  static String formatCompleteDate(Date date); static String formatOnlyDay(Date date); static String formatFilenameDate(Date date); static String formatDateForMongo(Date date); static String getDuration(Date dateBegin, Date dateEnd); static Date getLastTimeFromDate(Date date);  }