Java LocalDate create from Clock
import java.time.Clock; import java.time.LocalDate; public class Main { public static void main(String[] args) { Clock clock = Clock.systemDefaultZone(); System.out.println(clock);/* w w w . j a v a2 s . c o m*/ LocalDate localDate = LocalDate.now(clock); System.out.println(localDate); } }