title: Date in Playframework
body: <p>I have Model which has Date information:</p>
  
  <pre><code>package models;
  import java.util.Date;
  import javax.persistence.*;
  
  import play.data.binding.As;
  import play.db.jpa.*;
  @Entity
  public class testing extends Model {
  …
  public  Date date;
  // I even tried public @As("yyyy-MM-dd") Date date;
  
  …
  public test1 {…date…}
  }
  </code></pre>
  
  <p>Then I have a controller which receive user submitted date (and other information), save to database</p>
  
  <pre><code>public static void post(… @As("yyyy-MM-dd") Date date, …) {
  }
  </code></pre>
  
  <p>Others information work well, I can save them all in database except date. After running, all information are posted to MySql but Date field was still Null</p>
  
  <p>Debug information for date in controller is as follow:
  Nov 7, 2011 12:00:00 AM
  So I think that it might be conflict in type of controller and model. But how?
  Please help me.</p>