title: How to choose correct date type for spring controller?
body: <p>I need to implement endpoint like that:</p>
  <pre><code>@GetMapping(&quot;/localdatetime&quot;)
  public SomeObhject dateTime(@RequestParam(&quot;localDateTime&quot;) LocalDateTime date) {
  </code></pre>
  <p>By date it should query smth from database and return to the client.</p>
  <p>My question is which date type should I use ?</p>
  <ul>
  <li>LocalDateTime</li>
  <li>ZonedDatetime</li>
  <li>OffsetDateTime</li>
  </ul>
  <p>?</p>
  <p>Something else ?</p>
  <p>Which advantages and disadvantage ?</p>
  <p>AFAIK the best way to pass date - is pass it in the UTC format but it doesn't answer my question directly.</p>