Databse DateTime milli & nano seconds are truncated by default if its 0s while using it in java-11 using ZonedDateTime
问题 I am fetching datetime from oracle db and parsing in java-11 using ZonedDateTime as below: oracle --> 1/19/2020 06:09:46.038631 PM java ZonedDateTime 0/p --> 2020-01-19T18:09:46.038631Z[UTC] oracle --> 1/19/2011 4:00:00.000000 AM java ZonedDateTime o/p --> 2011-01-19T04:00Z[UTC] (So, here the 0s are truncated by default. However, my requirement is to have consistent fixed length o/p like #1.) expected java ZonedDateTime o/p --> 2011-01-19T04:00:00.000000Z[UTC] However, I didnt find any date