I receive a string with a date in format: 1990-05-30
I need to convert it to LocalDate
Check that is valid to year/month-day like in my example
- And return true or false.
Can you show a good practice?
public boolean check(String date){
LocalDate localDate = LocalDate.parse(date);
...
}