How to specify the format string to convert the date alone from string. In my case, only the date part is relevant
Constructing it as DateTime fails:
DateTime
Use the parse(String) method.
parse(String)
LocalDate date = LocalDate.parse("2009-04-17");