system time in java 8 code example Example: get today date in java 8 LocalDate localDate = LocalDate.now();