In an XML file, a date is formatted using ISO 8601 convention. For example: 2005-04-01T13:38:09-08:00 The last part, "-08:00", is the timezone. How to parse such a string? If I use SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ"), I can only parse 2005-04-01T13:38:09-0800 Any other way besides removing the last colon then use the SimpleDateFormat above?
In this quick article, you'll learn how to convert a date string to an instance of LocalDate in Java 8 and higher. The new date and time API provides the parse() method for parsing a string to date. By default, this method accepts a date string in ISO-8601 format — ISO_LOCAL_DATE and parses it directly to an instance of LocalDate.
Texas go math grade 4
Tractor salvage yards washington state
Synology plex setup