How to convert “Fri Sep 21 15:23:59 CEST 2012” to “2012-09-21T15:23:59” in Java?

后端 未结 3 1233
攒了一身酷
攒了一身酷 2020-12-21 06:30

I want to convert the date string \"Fri Sep 21 15:23:59 CEST 2012\" to \"2012-09-21T15:23:59\" in Java. I tried this with SimpleDateFormat and the following code:

         


        
3条回答
提交回复
热议问题