Unparseable date Java Origin: Application & API Last updated 13 Oct 2026

java.text.ParseException: Unparseable date: "x"

SimpleDateFormat couldn’t parse the string with its pattern.

Exact message you may see Unparseable date
Seen on: Java

Meaning

Legacy java.util.Date parsing. Pattern mismatches, locale differences and timezone suffixes are common. SimpleDateFormat is also not thread-safe.

Common causes

  • Pattern doesn’t match the input
  • Locale mismatch (month names)
  • Shared SimpleDateFormat across threads

⚡ Quick fix

  1. Fix the pattern
  2. Migrate to java.time (DateTimeFormatter is thread-safe)
  3. Specify Locale.ENGLISH for English month names

Detailed fix by platform

Java

  1. DateTimeFormatter.ofPattern("EEE, dd MMM yyyy HH:mm:ss Z", Locale.ENGLISH)

How to diagnose

  1. Input — Exact string
  2. Pattern — Current pattern

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: Application & API. Errors that are often confused with or caused by this one (click to open):

1292 — MySQL ERROR 1292 (22007): Incorrect datetime value: 'x' for column 'y' (MySQL)129222008 — ERROR: date/time field value out of range: "31/12/2024" — HINT: Perhaps you need a different "datestyle" setting. (PostgreSQL)22008DateTimeParseException — java.time.format.DateTimeParseException: Text '31/12/2024' could not be parsed at index 2 (Java)DateTimeParseExceptionInput string was not in a correct format — System.FormatException: Input string was not in a correct format (.NET)Input string was not …InputMismatchException — java.util.InputMismatchException (Scanner) (Java)InputMismatchExceptioninvalid time value — RangeError: Invalid time value (JavaScript)invalid time valueinvalid_date — API Error: Invalid date format — expected ISO 8601 (YYYY-MM-DDTHH:mm:ssZ) (API)invalid_dateNumberFormatException — java.lang.NumberFormatException: For input string: "x" (Java)NumberFormatExceptionUnparseab…

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.