关于Java日期转换

 SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
        String format = simpleDateFormat.format(new Date());
        System.out.println(format);

  

posted @ 2020-09-06 20:05  奶牛花花  阅读(105)  评论(0编辑  收藏  举报