new date API java code example Example: dates in java 8 LocalDate.of(2015, 02, 20); LocalDate.parse("2015-02-20");