DateFormat does not work?

前端 未结 4 1928
难免孤独
难免孤独 2021-01-22 08:49
String selectedDate = \"2012-\" + createdMonth + \"-\" + createdDay;

SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");

try {
    createdDate = dateFo         


        
4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-22 09:11

    The parse method returns a java.util.Date and that is the what the Date implementation of toString() returns.

提交回复
热议问题