It’s probably because of the default locale on your computer which is not english.
You should use:
new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss", Locale.ENGLISH);
instead.
More Related Contents:
- java.text.ParseException: Unparseable date: "Augu 16, 1979" [duplicate]
- Y returns 2012 while y returns 2011 in SimpleDateFormat
- How to parse dates in multiple formats using SimpleDateFormat
- What is this date format? 2011-08-12T20:17:46.384Z
- Java SimpleDateFormat(“yyyy-MM-dd’T’HH:mm:ss’Z'”) gives timezone as IST
- SimpleDateFormat and locale based format string
- SimpleDateFormat parsing date with ‘Z’ literal [duplicate]
- Java SimpleDateFormat always returning January for Month
- Convert String Date to String date different format [duplicate]
- Parsing a date’s ordinal indicator ( st, nd, rd, th ) in a date-time string
- Unable to parse DateTime-string with AM/PM marker
- Date format parse exception – “EEE MMM dd HH:mm:ss Z yyyy” [duplicate]
- Java Date year calculation is off by year for two days
- Get yesterday’s date using Date [duplicate]
- How to parse month full form string using DateFormat in Java?
- Java Convert GMT/UTC to Local time doesn’t work as expected
- How to convert date in to yyyy-MM-dd Format?
- How to convert HH:mm:ss.SSS to milliseconds?
- SimpleDateFormat.parse() ignores the number of characters in pattern
- Java: Date parsing, why do I get an error
- How to format date string in java? [duplicate]
- Why can’t this SimpleDateFormat parse this date string?
- Getting wrong month when using SimpleDateFormat.parse
- Simple Date format returns Wrong date intermittently [duplicate]
- How to disable or highlight the dates in JCalendar
- Is there a date format to display the day of the week in java?
- Why is the month changed to 50 after I added 10 minutes?
- java.text.ParseException: Unparseable date: “01:19 PM”
- Is SimpleDateFormat in Java work incorrect or I did any mistake? See code sample [duplicate]
- Java SimpleDateFormat pattern for W3C XML dates with timezone [duplicate]