Date to string
final String formatted = LocalDate.of(2017, 4, 14) .format(DateTimeFormatter.ofPattern("yyyy-MM-dd"));