### Question:
DateUtils { private DateUtils() { } private  DateUtils(); static String format(Date date); static Date parse(String dateStr, String dateFormat); static String format(Date date, String dateFormat); static Date toDate(String dateStr, String dateFormat); static Date toDate(String str); static Date toDate2(String str); static Date getFirstDayOfMonth(int year, int month); static Date getFirstDayOfMonth(String yearMonth); static Date getLastDayOfMonth(String yearMonth); static Date getLastDayOfMonth(int year, int month); static Date getFirstDateOfThisYear(); static int getMonthOfDate(Date date); static int getQuarterOfDate(Date date); static Date getLastDayOfMonth(Date date); static Date getFirstDayOfMonth(Date date); static int getDiffDays(Date left, Date right); static Date getDateByOffset(Date date, int offset); static final int getDayOfWeek(Date date); static Date clearTime(Date date); static int getDateDiffDays(Date curDate, Date oriDate); static int getDateDiffDay(Date curDate, Date oriDate); static String getDate(Date date); static String getDate(Date date, String pattern); static Date getMonthByOffset(Date date, int offset); static boolean isBetween(Date beginDate, Date endDate, Date date); static Date longToDate(long l); static final String YYYYMMDD; static final String YYYYMMDDS; static final String YYYYMMDDHMS; static final String YYYYMMDDHM; }### Answer:
@Test public void testDateUtils() { String date = DateUtils.format(new Date()); logger.info("DateUtils测试类 运行结果：{}",date); }