title: How to make Swagger 3 UI display example date in DDMMYYYY format?
body: <p>I have a Spring Boot app with REST API, and in one of the request object, I declared a field which is supposed to hold a date in the format DDMMYYYY:</p>
  <pre><code>@Parameter(required = true, example = &quot;20022022&quot;)
  @Schema(required = true, type = &quot;date&quot;, format = &quot;ddmmyyyy&quot;, example = &quot;20022022&quot;)
  @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = &quot;ddMMyyyy&quot;)a
  @JsonDeserialize(using = LocalDateDeserializer.class)
  @NotNull
  private LocalDate valueDate;
  </code></pre>
  <p>In the Swagger UI, the example value of this field in the request body is always shown as below (current date in the format YYYY-MM-DD).</p>
  <pre><code>{
      ...
      &quot;valueDate&quot;: &quot;2022-03-17&quot;
  }
  </code></pre>
  <p>I have this in my pom.xml:</p>
  <pre><code>    &lt;dependency&gt;
          &lt;groupId&gt;org.springdoc&lt;/groupId&gt;
          &lt;artifactId&gt;springdoc-openapi-webmvc-core&lt;/artifactId&gt;
          &lt;version&gt;1.6.4&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springdoc&lt;/groupId&gt;
          &lt;artifactId&gt;springdoc-openapi-ui&lt;/artifactId&gt;
          &lt;version&gt;1.6.6&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  <p>How can I make the Swagger UI display the example date in the format DDMMYYYY? As you can see in my codes above, I put in @Parameter and @Schema but I really don't know how they work.</p>