DateUtils dateUtils = new DateUtils(); Date currentDate = dateUtils.getCurrentDate(); FormattingUtils formattingUtils = new FormattingUtils(); Date currentDate = new Date(); String formattedDate = formattingUtils.formatDate(currentDate, "yyyy-MM-dd"); ParsingUtils parsingUtils = new ParsingUtils(); String dateString = "2022-01-01"; Date parsedDate = parsingUtils.parseDate(dateString, "yyyy-MM-dd");


上一篇:
下一篇:
切换中文