java.text.ParseException: Unparseable date: "2003-08-14 16:04:23"

Coderanch | Joel McNary | 1 decade ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    formatting a string (that is secretly a date) yet as a string...

    Coderanch | 1 decade ago | Joel McNary
    java.text.ParseException: Unparseable date: "2003-08-14 16:04:23"
  2. 0

    How to convert this date in required format

    Stack Overflow | 1 year ago | Kiran
    java.text.ParseException: Unparseable date: "Sun, 01 Nov 2015 06:27:09 +0000"
  3. 0

    When running JIRA on IBM J9 VM using a german locale, the short dates for the months are different. In particular the short date for march on Sun JVM is Mrz and this is the same as the Javascript date picker. However on IBM J9 VM the short format is Mär. This leads to a situation where the Javascript date picker will put in the wrong value (Mrz) when running on an IBM JVM (which expects Mär). The following java program illustrates the differences. {code}import java.util.*; import java.text.*; public class Test { public static void main(String[] args) { SimpleDateFormat df = new SimpleDateFormat("dd-MMM-yyyy", Locale.GERMAN); //works on sun try { df.parse("09-Mrz-2008"); System.out.println("Parsed 09-Mrz-2008 successfully"); }catch(Exception e) { e.printStackTrace(); } //works on IBM try { df.parse("09-Mär-2008"); System.out.println("Parsed 09-Mär-2008 successfully"); }catch(Exception e) { e.printStackTrace(); } } } {code} Output on Sun/ Apple JVM {noformat}[amyers@erdinger:~]$ java -version java version "1.5.0_16" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284) Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing) [amyers@erdinger:atlassian-jira-enterprise-3.13.1-standalone]$ java Test Parsed 09-Mrz-2008 successfully java.text.ParseException: Unparseable date: "09-Mär-2008" at java.text.DateFormat.parse(DateFormat.java:335) at Test.main(Test.java:20) {noformat} Output on IBM JVM {noformat}[was@centos5was bin]$ ./java -version java version "1.5.0" Java(TM) 2 Runtime Environment, Standard Edition (build pxi32dev-20060511 (SR2)) IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Linux x86-32 j9vmxi3223-20060504 (JIT enabled) J9VM - 20060501_06428_lHdSMR JIT - 20060428_1800_r8 GC - 20060501_AA) JCL - 20060511a [was@centos5was bin]$ ./java Test java.text.ParseException: Unparseable date: "09-Mrz-2008" at java.text.DateFormat.parse(DateFormat.java:352) at Test.main(Test.java:11) Parsed 09-Mär-2008 successfully {noformat}

    Atlassian JIRA | 8 years ago | Andrew Myers [Atlassian]
    java.text.ParseException: Unparseable date: "09-Mrz-2008"
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Regarding conversion of String to Date

    Oracle Community | 1 decade ago | 843833
    java.text.ParseException: Unparseable date: "2005-04-18"
  6. 0

    Unexpected exception when calling SimpleDateFormat.parse

    Stack Overflow | 4 weeks ago | pasaba por aqui
    java.text.ParseException: Unparseable date: ""

  1. odd 1 times, last 1 week ago
  2. Casper 27 times, last 2 weeks ago
  3. Eric 2 times, last 1 month ago
  4. marcbouvierdav 1 times, last 1 month ago
  5. Hronom 52 times, last 3 months ago
27 more registered users
11 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.text.ParseException

    Unparseable date: "2003-08-14 16:04:23"

    at java.text.DateFormat.parse()
  2. Java RT
    DateFormat.parse
    1. java.text.DateFormat.parse(DateFormat.java:334)
    1 frame
  3. Unknown
    Test.main
    1. Test.main(Test.java:6)
    1 frame