title: JSF Converter Timestamp
body: <p>I want to convert my input into a timestamp value.</p>
  
  <p>I have only found a dateconverter in examples. Are there any best practises?</p>
  
  <p>Thank you</p>
  
  <hr>
  
  <p>Update:</p>
  
  <p>I want to save a birthday of a user but my backend requires a timestamp value. And I have problems with binding it to my jsf frontend..</p>
  
  <p>Maybe a link to an example would be helful :-)</p>
  
  <p>I tried it as follows:</p>
  
  <pre><code>public void setBday(Date bday) {
              member.setBirthday(new Timestamp(bday.getTime()));
          }
          public Timestamp getBday() {
              return member.getBirthday();
          }
  </code></pre>
  
  <p>But I get exceptions (strange):</p>
  
  <pre><code>/createMember.xhtml @34,54 value="#{member.bday}": Cannot convert 13.01.83 01:00 of type class java.util.Date to class java.sql.Timestamp
  </code></pre>
  
  <p>(Is it maybe because of get method?)</p>