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