I have this date/time value 2020-02-29T18:21:13.2627230Z that I am trying to parse using SimpleDateFormat Class. I used several patterns because I don't which to use:
yyyy-MM-dd'T'HH:mm:ss.SSS'Z' => Time parsed is: Sat Feb 29 19:05:00 UTC 2020
yyyy-MM-dd'T'HH:mm:ssss => Time parsed is: Sat Feb 29 18:21:13 UTC 2020
yyyy-MM-dd'T'HH:mm:ss.SSS => Time parsed is: Sat Feb 29 19:05:00 UTC 2020
What does the last part mean 2627230Z. Are the digits here the milliseconds and Z the time in UTC? if so, shouldn't I use the pattern that ends with SSSSSSSZ ? I'm getting a parseException here.
Also why am I getting a different output in the minutes 19:05:00 (1st pattern) and 18:21:13 (2nd pattern)
Thanks