Try:
"yyyy-MM-dd'T'HH:mm:ss"
MM
means month. mm
means minutes. See the documentation for SimpleDateFormat
for more details of the supported date and time patterns.
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]
- 12:xx shown as 00:xx in SimpleDateFormat.format(“hh:mm:ss”)
- Convert String to Calendar Object in Java
- Get yesterday’s date using Date [duplicate]
- Converting String to Date using SimpleDateFormat is returning random date [duplicate]
- What are the date formats available in SimpleDateFormat class?
- SimpleDateFormat.parse() ignores the number of characters in pattern
- how to add days to java simple date format
- 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?
- SimpleDateFormat with German Locale – Java 8 vs Java 10+
- 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]