Introduction
The getEra()
method in the LocalDate
class is used to get the era of a date. The IsoChronology
class defines eras CE (Current Era) from year one onwards and BCE (Before Current Era) from year zero backward. This method does not take any arguments and returns an IsoEra
enum value.