How can I pass an Instant startDate, endDate as a @RequestParam Instant startDate, Instant endDate with pattern yyyy-MM-dd so the request will looks like localhost:port/api/entity=startDate=2019-10-10?endDate=2019-10-15 any ideas how to perform it?
@RequestParam("from") @DateTimeFormat(iso = ISO.DATE) Instant startDate,
@RequestParam("to") @DateTimeFormat(iso = ISO.DATE) Instant endDate)
it does not help I'm getting Failed to convert value of type 'java.lang.String' to required type 'java.time.Instant' even tried with pattern. Also the problem is that when I've entity created at yyyy-MM-dd HH:mm:ss how can I ignore the seconds so when I pass date and hours only it will display the result.