title: How to set <aui:input> tag's calendar date and locale in Liferay 6.2 CE GA2?
body: <p>I'm currently unable to set <code>&lt;aui:input&gt;</code> tag's calendar date and locale format:</p>
  
  <ul>
  <li>It's still showing up an empty non-localized input pattern (mm/dd/yyyy)</li>
  <li>While clicking to expand the calendar, date selected is always NOW even if a <code>Date</code> value is specified</li>
  <li>When a date is selected in the calendar, then input field is filled with the selected date, but in the wrong format (still as mm/dd/yyyy)</li>
  </ul>
  
  <p>I cannot upload images or share more than one link due to my reputation, so I'm merging up those three cases mentioned before into a single image in <a href="http://i.stack.imgur.com/zhZxn.png" rel="nofollow">here</a>.</p>
  
  <p>This is what I'm currently doing in my .jsp file:</p>
  
  <pre><code>&lt;%
  Calendar calendar = CalendarFactoryUtil.getCalendar(themeDisplay.getTimeZone(), themeDisplay.getLocale());
  Date date = new Date(571096800000l); // A random date different than NOW.
  calendar.setTime(date);
  System.out.println("calendar date = " + calendar.getTime()); // Fri Feb 05 22:00:00 GMT 1988
  
  Format formatter = FastDateFormatFactoryUtil.getDate(themeDisplay.getLocale(), themeDisplay.getTimeZone());
  String formattedDate = formatter.format(date);
  System.out.println("formatted date = " + formattedDate); // formatted date = 5.02.88
  %&gt;
  
  &lt;aui:input type="date" name="test1" value="&lt;%= calendar %&gt;"/&gt;
  &lt;aui:input type="date" name="test2" value="&lt;%= calendar.getTime() %&gt;"/&gt;                 
  &lt;aui:input type="date" name="test3" value="&lt;%= date %&gt;"/&gt;
  &lt;aui:input type="date" name="test4" value="&lt;%= date.getTime() %&gt;"/&gt;
  &lt;aui:input type="date" name="test5" value="&lt;%= date %&gt;"/&gt;
  &lt;aui:input type="date" name="test6" value="&lt;%= date.getTime() %&gt;"/&gt;
  &lt;aui:input type="date" name="test7" value="&lt;%= formattedDate %&gt;"/&gt;
  </code></pre>
  
  <p>Thanks a lot for your time!</p>