java8 LocalDateTime时间格式化

 LocalDateTime time = techLogicTablePo.getCreateTime();
            DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
            String createTime = dateTimeFormatter.format(time);

猜你喜欢

转载自www.cnblogs.com/liubaihui/p/10641829.html
今日推荐