LocalDate
LocalDate is a date representation that stores year, month, and day without any time-of-day information or time zone. It is part of the ISO-8601 calendar system and is designed for date-only values. In Java, LocalDate is provided by the java.time package and is immutable and thread-safe.
Because it does not include time or zone data, LocalDate is suitable for birthdates, anniversaries, deadlines,
LocalDate offers accessors such as getYear(), getMonth(), getMonthValue(), and getDayOfMonth(). It also provides comparison methods like
For display and interoperability, LocalDate uses ISO-8601 string format (YYYY-MM-DD) in toString(), and can be converted
LocalDate has fixed bounds accessible via LocalDate.MIN and LocalDate.MAX, defining the practical supported range of dates.