This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes JSF and the fly likes date converter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "date converter" Watch "date converter" New topic
Author

date converter

rakesh verma
Greenhorn

Joined: Jul 13, 2005
Posts: 22
<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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: date converter
 
Similar Threads
RichFaces calendars (start date = end date)
strange error for displaying date
Weird Conversion Error inputText behavior with Dates
selectOneRadio in several columns...
'07/01/2010' could not be understood as a date.