java-csv export - exporting documents show date format is incorrect

csv export file, opened it at the time, not seconds (click to select, in fact, there is a second, that is the wrong format), as shown below:

Baidu said upper, front and back plus t, so the injection into the content out of the content inside the red box, as shown below:

 

--------------------split line----------------------

Note: for your own reference

Show only years

SimpleDateFormat dateFormat =new SimpleDateFormat("yyyyMM");
Date cycleDate = dateFormat.parse(rs.getString("cycle"));
ret.put("cycle",cycleDate);

Guess you like

Origin www.cnblogs.com/Lemon-ZYJ/p/11970745.html