title: Format the date in textbox JSP
body: <p>I have date type Java object. I want to display that in textbox, allow the user to change it, submit that along with the form. I am attaching the datepicker using class date with the textbox to take the input from user. But I want to set some initial value in the texbox from datevar in specified format. How can specify the format ?</p>
  
  <pre><code>&lt;td&gt;&lt;p&gt;Date: &lt;input type="text" class= "date" name = "date" value = "${dateVar}"/&gt;&lt;/p&gt;&lt;/td&gt;
  </code></pre>
  
  <p>I have used the format for label as following: </p>
  
  <pre><code>&lt;td&gt;&lt;fmt:formatDate value="${dateVar}" pattern="MM-dd-yyyy" /&gt;&lt;/td&gt;
  </code></pre>
  
  <p>Can I do something like that for my textbox as well ?</p>