Unparsable date exception

前端 未结 5 1181
我在风中等你
我在风中等你 2021-01-21 21:37

I\'m currently working on some simple project in Java and I have date in the following string:

String dateString = \"Sun 7/14 03:44 AM 2013\";
         


        
5条回答
  •  佛祖请我去吃肉
    2021-01-21 22:14

    SimpleDateFormat formatter = new SimpleDateFormat("/* type your own format*/");
    
    
    
      String formattedDate = formatter.format(todaysDate);
    
      System.out.println("Formatted date is ==>"+formattedDate);
    

    try this code

提交回复
热议问题