
入门菜鸟的垃圾Java备忘
会说话的柠檬精
这个作者很懒,什么都没留下…
展开
-
Java转换时间格式2015-12-31T16:00:00.000Z
今年的格式为2015-12-31T16:00:00.000Z,前端怎么转换都没反应,只能在后台接口里转啦,文章只是为了备忘。 year = year.replace(“Z”,“UTC”); SimpleDateFormat format = new SimpleDateFormat(“yyyy-MM-dd'T'HH:mm:ss.SSS Z”); Date d = format.parse(y...原创 2018-11-09 17:15:41 · 10177 阅读 · 0 评论 -
表格上传 整数自动加上.0问题
//temp是从表格中读取的数据,cell是单元格 String temp = Double.toString(cell.getNumericCellValue()); Object inputValue = temp; long longVal = Math.round(cell.getNumericCellValue()); if (Double.parseDouble(longVal + ...原创 2019-01-16 15:06:24 · 996 阅读 · 0 评论