Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

LocalDate.until question

michael fungMay 10 2024

LocalDate d1 = LocalDate.parse("2023-09-30"); LocalDate d2 = LocalDate.parse("2024-02-29");
long difference = d1.until(d2, ChronoUnit.MONTHS);
Why difference is 4 instead?

Comments

Post Details

Added on May 10 2024
1 comment
144 views