title: Cannot deserialize instance of 'java.util.date' out of START_OBJECT token
body: <p>Invalid JSON input: Cannot deserialize instance of <code>java.util.Date</code> out of START_OBJECT token; nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of ``java.util.Date` out of START_OBJECT token</p>
  
  <p>I am trying to set the default date picker to show pacific time in REACT using functional Component. useState()</p>
  
  <p><strong>REACT</strong></p>
  
  <pre><code>const [startDate, setStartDate] = useState(new Date());
  return(&lt;TextField
           id="datetime-local-startTime"
           type="datetime-local"
           defaultValue={startDate}
           className={classes.textField}
           onChange={setDefaultStartDate(startDate)}
         /&gt;)
  const setDefaultStartDate = (date) =&gt; {
          date.setHours(date.getHours() - 8);
          setStartDate(date.toISOString().substr(0, 16))
          return date.toISOString().substr(0, 16);
      }
  </code></pre>
  
  <p><strong>JAVA</strong></p>
  
  <pre><code>@JsonProperty("startDate")
  private Date startDate;
  
  @JsonProperty("endDate")
  private Date endDate;`
  </code></pre>