title: Getting bad request while passing LocalDateFilter spring rest controller
body: <pre><code>/api/test?page=-1&amp;size=50&amp;nextDateOfScreening.greaterThan=2020-04-03&amp;sort=id,asc
  </code></pre>
  
  <p>this is my passing url and in controller am receiving it as,</p>
  
  <pre><code>@GetMapping("/test")
      public ResponseEntity&lt;List&lt;ExampleDTO&gt;&gt; getAllTIBenScrDetails(ExampleCriteria criteria, Pageable pageable) {
          Page&lt;ExampleDTO&gt; page = tIBenScrDetailsQueryService.findByCriteria(criteria, pageable);
          HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(ServletUriComponentsBuilder.fromCurrentRequest(), page);
          return ResponseEntity.ok().headers(headers).body(page.getContent());
      }
  </code></pre>
  
  <p>and  <strong>ExampleCriteria</strong> class as,</p>
  
  <pre><code>public class ExampleCriteria implements Serializable, Criteria {
      private LocalDateFilter nextDateOfScreening; //jhipster LocalDateFilter
  }                                                                         
  </code></pre>
  
  <p>and Iam getting bad request for the date filter as,</p>
  
  <pre><code>Field error in object 'ExampleCriteria' on field 'nextDateOfScreening.greaterThan': rejected value [2020-04-03]; codes [typeMismatch.ExampleCriteria.nextDateOfScreening.greaterThan,typeMismatch.nextDateOfScreening.greaterThan,typeMismatch.greaterThan,typeMismatch.java.time.LocalDate,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [ExampleCriteria.nextDateOfScreening.greaterThan,nextDateOfScreening.greaterThan]; arguments []; default message [nextDateOfScreening.greaterThan]]; default message [Failed to convert property value of type 'java.lang.String' to required type 'java.time.LocalDate' for property 'nextDateOfScreening.greaterThan'; nested exception is org.springframework.core.convert.ConversionFailedException: Failed to convert from type [java.lang.String] to type [java.time.LocalDate] for value '2020-04-03'; nested exception is java.lang.IllegalArgumentException: Parse attempt failed for value [2020-04-03]]
  </code></pre>
  
  <p>For <em>greaterThanEquals</em> and <em>lessThanEquals</em> bad request error is not getting but for <em>greaterThan</em> and <em>lessThan</em> error is there. Can anyone help me to solve this?</p>