java.text.ParseException: Unparseable date: "x"
SimpleDateFormat couldn’t parse the string with its pattern.
Unparseable date 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
- Fix the pattern
- Migrate to java.time (DateTimeFormatter is thread-safe)
- Specify Locale.ENGLISH for English month names
Detailed fix by platform
Java
DateTimeFormatter.ofPattern("EEE, dd MMM yyyy HH:mm:ss Z", Locale.ENGLISH)
How to diagnose
- Input — Exact string
- 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:
Similar errors
- 1292 MySQL ERROR 1292 (22007): Incorrect datetime value: 'x' for column 'y'
- 22008 ERROR: date/time field value out of range: "31/12/2024" — HINT: Perhaps you need a different "datestyle" setting.
- DateTimeParseException java.time.format.DateTimeParseException: Text '31/12/2024' could not be parsed at index 2
Most viewed in Java
Other ways to find it
Where this error sits
Origin: Application & API. Errors that are often confused with or caused by this one (click to open):
🧠 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.
Report a correction or suggest an improvement
Last updated 13 Oct 2026