not able to convert Strng "rejectedDate":"2018-03-29" to ZoneDate time format : java.time.format.DateTimeParseException: Text '2018-03-29 16:15:30' could not be parsed at index 10

 DateTimeFormatter fmt = DateTimeFormatter.ofPattern("yyyy-MM-dd");
						OffsetDateTime date = 
 OffsetDateTime.parse(entry.getValue(), fmt);
						predicates.add(cb.equal(root.get(entry.getKey()), date));