title: Display date object/value from controller to view in Play Framework/Scala
body: <p>I have a date from a model that is retrieved by the controller and displayed in the view.  However, the date does not display as a value in the field in the view.</p>
  
  <p>Here is the view:</p>
  
  <pre><code>@(intakeForm: Form[Application.IntakeAdd], lookups: java.util.List[Lookup], users: java.util.List[User], intake: Intake)
  
  @main(null) {
  ...
  &lt;div class="element-date"&gt;
    &lt;label class="title"&gt;&lt;span class="required"&gt;*&lt;/span&gt;Date Requested:&lt;/label&gt;
      &lt;div class="item-cont"&gt;
      &lt;input class="large" data-format="yyyy-mm-dd" type="date" name="daterequested" required="required" placeholder="Date" value="@intake.daterequested" /&gt;
      &lt;span class="icon-place"&gt;&lt;/span&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  
  ...
  }
  </code></pre>
  
  <p>I have the field value as:</p>
  
  <pre><code>value="@intake.daterequested"
  </code></pre>
  
  <p>but it does not display any value -- all other values work, just not the date.</p>
  
  <p>The value is stored as a Java Date() object in the model:</p>
  
  <pre><code>@Constraints.Required
  @Formats.DateTime(pattern = "yyyy-MM-dd")
  public Date daterequested;
  </code></pre>
  
  <p>I am guessing there may be some translation I could use in the view to correct this?</p>
  
  <p>I appreciate the help!</p>