title: Date format time on Spring Doc swagger API
body: <p>I'm trying to generate the documentation from my springboot application using spring doc , this is some of the attributes of the class which is causing me issues:</p>
  <pre><code>public class user {
  
      @JsonFormat(pattern = &quot;yyyy-MM-dd&quot;)
      private Date dateOfBirth;
  
  }
  </code></pre>
  <p>With the Spring doc annotation, in the swagger i got this:</p>
  <blockquote>
  <p>dateOfBirth*  string($date-time)</p>
  </blockquote>
  <blockquote>
  <p>&quot;dateOfBirth&quot;: &quot;2020-04-29T14:15:32.475Z&quot;</p>
  </blockquote>
  <p>while i would like to have this:</p>
  <blockquote>
  <p>dateOfBirth*  string($date)</p>
  </blockquote>
  <blockquote>
  <p>&quot;dateOfBirth&quot;: &quot;2020-04-29&quot;</p>
  </blockquote>
  <p>How to do that? I think to be close to solution but i can't firugre out what i'm missing</p>