get today date in java 8

Java
LocalDate localDate = LocalDate.now();

Source

Also in Java: