title: How to initialize a Java Date object in Spring xml configuration file?
body: <p>Consider this simple example - </p>
  
  <pre><code>public class Person
   {
      private String name;
      private Date dateOfBirth;
  
      // getters and setters here...
   }
  </code></pre>
  
  <p>In order to initialize Person as a Spring bean, I can write the following. </p>
  
  <pre><code>&lt;bean id = "Michael" class = "com.sampleDomainName.Person"&gt;
  &lt;property name = "name" value = "Michael" /&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>But in the above bean definition, how can I set the dateOfBirth?</p>
  
  <p>For eg. I want to set the dateOfBirth as </p>
  
  <pre><code>1998-05-07
  </code></pre>