java8 LocalDateTime时间格式化

时间:2019-04-02 12:48:25   收藏:0   阅读:517
 LocalDateTime time = techLogicTablePo.getCreateTime();
            DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
            String createTime = dateTimeFormatter.format(time);

 

原文:https://www.cnblogs.com/liubaihui/p/10641829.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!