new Date()
Sun Jan 29 11:39:08 CST 2023
new DateTime()
2023-01-29 11:39:26
private static String dateFormat="yyyyMMdd";
DateFormatUtils.format(new Datetime(), dateFormat);
20230129
new Date()
Sun Jan 29 11:39:08 CST 2023
new DateTime()
2023-01-29 11:39:26
private static String dateFormat="yyyyMMdd";
DateFormatUtils.format(new Datetime(), dateFormat);
20230129