Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

date converter

 
rakesh verma
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<hutputText value="Start" />
<h:inputText id="startDate" value="#{form.startDate}">
<f:convertDateTime pattern="MM/dd/yyyy" />
<hx:inputHelperDatePicker />
</h:inputText>

I have this simple code, whenever I submit the form, and display the start date in action class, it is printing a day before. Like, if I set the date as 08/24/2006, I am getting 'Wed Aug 23 20:00:00 EDT 2006'

Thanks in Advance.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic