Java Date Time - LocalDate getChronology() example








LocalDate getChronology() gets the chronology of this date, which is the ISO calendar system.

Syntax

getChronology has the following syntax.

public IsoChronology getChronology()

Example

The following example shows how to use getChronology.

import java.time.LocalDate;

public class Main {
  public static void main(String[] args) {
    LocalDate a = LocalDate.of(2014, 6, 30);

    System.out.println(a.getChronology().getId());
  }
}

The code above generates the following result.