java格式化日期并返回String类型 String date = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()); JAVA 2023-11-24 122 点赞 1 评论 184 浏览