Unparseable date: “30-Jun-12”

后端 未结 3 610
萌比男神i
萌比男神i 2021-01-22 11:44

I\'m using a Java method to convert the date into suitable format:

private Timestamp toTimeStamp(String s) throws java.text.ParseException
    {
        Timestam         


        
3条回答
  •  北恋
    北恋 (楼主)
    2021-01-22 12:09

    If you develop web application and you run it in browser, try change preferable language settings in browser settings. Different countries have different date format, there is major difference between European Countries and United States, so try in your browser (eg. Firefox):

    Tools => Options => Content => Choose preferable language 
    

    Make sure when you make your application focused in browser that language bar on the taskbar shows desirable langage.

    If web application is not case: Check regional setting and preferable language settings.

提交回复
热议问题