I have a string with the format: String dateString = \"2014-03-17T20:05:49.2300963Z\"
Trying this:
SimpleDateFormat df = new SimpleDateF
Instant.parse( "2014-03-17T20:05:49.2300963Z" )
You are using the troublesome old date-time classes, now legacy, supplanted by the java.time classes.
The ISO 8601 standard defines string formats to represent date-time values. You input complies with ISO 8601.
The java.time classes use ISO 8601 formats by default when parsing and generating strings. So no need to specify a formatting pattern.
Instant instant =
Instant.parse( "2014-03-17T20:05:49.2300963Z" );