Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
seljabali committed Feb 28, 2024
1 parent 6dc82a6 commit 82b391e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ This library empowers Java Time & makes it a lot of **fun**! 😃


- val dateFormatter = DateTimeFormatter.ofPattern("MM/dd/yyyy")
- println(dateFormatter.format(date))
+ println(date.print("MM/dd/yyyy"))
- print(dateFormatter.format(date))
+ print(date.print("MM/dd/yyyy"))

- if (ChronoUnit.YEARS.between(dateOfBirth, LocalDate.now()) < 18) {
+ if (dateOfBirth.getYearDifference(LocalDates.today) < 18) {
Expand Down

0 comments on commit 82b391e

Please sign in to comment.