java.time.chrono


1. Getting the current chronology:

ChronoLocalDate now = ChronoLocalDate.now();

2. Creating a date from a string:

ChronoLocalDate date = ChronoLocalDate.parse("2023-03-08");

3. Getting the chronology of a date:

Chronology chrono = date.getChronology();

4. Converting a date to another chronology:

ChronoLocalDate otherDate = date.withChronology(ChronoLocalDate.of(2023, 3, 8).getChronology());

5. Getting the calendar system of a chronology:

CalendarSystem calendarSystem = chrono.getCalendarSystem();

6. Getting the era of a date:

Era era = date.getEra();

7. Getting the year of a date:

int year = date.getYear();

8. Getting the month of a date:

Month month = date.getMonth();

9. Getting the day of the month of a date:

int dayOfMonth = date.getDayOfMonth();

10. Getting the day of the week of a date:

11. Getting the day of the year of a date:

12. Getting the week of the year of a date:

13. Getting the month value of a date:

14. Getting the year value of a date:

15. Getting the epoch day of a date:

16. Converting an epoch day to a date:

17. Getting the start of the month of a date:

18. Getting the end of the month of a date:

19. Getting the start of the year of a date:

20. Getting the end of the year of a date:

21. Adding days to a date:

22. Subtracting days from a date:

23. Adding months to a date:

24. Subtracting months from a date:

25. Adding years to a date:

26. Subtracting years from a date:

27. Comparing two dates:

28. Checking if a date is before another date:

29. Checking if a date is after another date:

30. Checking if a date is equal to another date:

31. Creating a date from a chronology, year, month, and day of month:

**32. Creating a date from a chron