title: Error: Failed to convert property value of type java.lang.String to required type java.util.Date for property dob?
body: <p>I am trying simple Spring-MVC application for form validations. I am facing an issue while taking date input from browser. The error is:</p>
  
  <pre><code>"Failed to convert property value of type java.lang.String to required type java.util.Date for property dob; 
  nested exception is java.lang.IllegalArgumentException: Could not parse date: Unparseable date: "2015-12-25"
  </code></pre>
  
  <p>This problem I am facing in Google Chrome browser only. In internet explorer and eclipse interface its working fine. I am using Chrome-40.0.2214.115m.</p>
  
  <p>I am sharing part of my code here:</p>
  
  <p>From Controller file:</p>
  
  <pre><code>...
  @InitBinder     
  public void initBinder(WebDataBinder binder){
       SimpleDateFormat dateFormat = new SimpleDateFormat("MM/dd/yyyy");
       binder.registerCustomEditor(Date.class,new CustomDateEditor(dateFormat, false));   
  }
  ...
  </code></pre>
  
  <p>From JSP file:</p>
  
  <pre><code>...
  &lt;tr&gt;
  &lt;td&gt;&lt;label for="dob"&gt;DOB&lt;/label&gt;&lt;/td&gt;
  &lt;td&gt;&lt;input type="date" name="dob" /&gt;&lt;/td&gt;
  &lt;td&gt;&lt;form:errors path="person1.dob" /&gt;&lt;/td&gt;
  &lt;/tr&gt;
  ...
  </code></pre>
  
  <p>If there is problem with browser compatibility, then what is the solution for it? Please help me to solve this issue.</p>