title: How to send time value from Postman to my REST api
body: <p>I have a class with a variable of type Date, representing a time</p>
  <pre><code>@Entity
  public class Product implements Serializable {
  
  private static final long serialVersionUID = -7181205262894478929L;
  
  @Id
  @GeneratedValue(strategy = GenerationType.AUTO)
  private int productId;
  
  @NotNull()
  private String productName;
  
  @Temporal(TemporalType.DATE)
  @DateTimeFormat(style = &quot;yyyy-MM-dd&quot;)
  @NotNull()
  private Date date;
  
  @Temporal(TemporalType.TIME)
  @DateTimeFormat(style = &quot;hh:mm&quot;)
  @NotNull()
  private Date time;
  ....
  }
  </code></pre>
  <p>Now I'm trying CRUD methods on Postman, and when I send</p>
  <blockquote>
  <p>{
  &quot;productName&quot;: &quot;name&quot;,
  &quot;date&quot;: &quot;2016-03-10&quot;,
  &quot;time&quot;: &quot;10:29&quot;
  }</p>
  </blockquote>
  <p>I get</p>
  <blockquote>
  <p>400 Bad Request</p>
  </blockquote>
  <p>with a description:</p>
  <blockquote>
  <p>The request sent by the client was syntactically incorrect.</p>
  </blockquote>
  <p>When I try without time, it passes.</p>