Introduction
The Java LocalDate class was introduced in Java 8 to represent a date without a time-zone. It provides various methods to perform operations on date objects such as adding or subtracting days, months, and years. One of these useful methods is the now(ZoneId)
method which returns the current date based on a specified time-zone.