System.out.println(DateUtil.today());
System.out.println(DateUtil.formatTime(DateUtil.date()));
System.out.println(DateUtil.format(DateUtil.date(), "yyyyMMdd"));
System.out.println(DateUtil.format(DateUtil.date(), "HHmmss"));
System.out.println(DateUtil.date());
System.out.println(DateTime.now().toString());
打印结果如下