title: Spring Date Format
body: <p>I have an angular app which send me a date like this dd/MM/yyyy.
  I would like to insert this date in the database.
  Here is my entity</p>
  
  <pre><code>@Entity
  public class Individu implements Serializable {
  
      @Id
      private String nui;
      private int civility; 
      private String lastName;
      private String useName;
      private String firstName;
      @Temporal(TemporalType.DATE)
      @DateTimeFormat(pattern="dd/MM/yyyy")
      private Date birthDate;
  </code></pre>
  
  <p>but when i run my SpringBootApp i always have this error:</p>
  
  <pre><code>org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Cannot deserialize value of type `java.util.Date` from String "20/02/1990": not a valid representation (error: Failed to parse Date value '20/02/1990': Cannot parse date "20/02/1990": not compatible with any of standard forms ("yyyy-MM-dd'T'HH:mm:ss.SSSZ", "yyyy-MM-dd'T'HH:mm:ss.SSS", "EEE, dd MMM yyyy HH:mm:ss zzz", "yyyy-MM-dd")); 
  </code></pre>
  
  <p>Is some one have a solution for me?</p>