Skip to main content
The 2026 Annual Developer Survey is live— take the Survey today!
deleted 4 characters in body
Source Link
assylias

If you use Java 7+, this pattern should work (XXXX is for the ISO 8601 time zone):

SimpleDateFormat fmt = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssXXX"ssX");

If you use Java 7+, this pattern should work (XXX is for the ISO 8601 time zone):

SimpleDateFormat fmt = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssXXX");

If you use Java 7+, this pattern should work (X is for the ISO 8601 time zone):

SimpleDateFormat fmt = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssX");
Source Link
assylias

If you use Java 7+, this pattern should work (XXX is for the ISO 8601 time zone):

SimpleDateFormat fmt = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssXXX");
lang-java