how to get a date from a string in java code example Example: how to read a date string in java LocalDate date = LocalDate.parse("2018-05-05");