I have to parse a date time String being sent over json - using Java 7, with the date time being in this format :
2016-04-26T11:35:30.0543787Z
The problem I'm having is with the extra decimals in the seconds - I can parse it if it is only to 3 decimal places e.g. milliseconds.
I can parse the value using SimpleDateFormat and the format string
"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"
but this gives an incorrect value.
Any help would be appreciated!