This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

f:convertDateTime

 
rosaria italia
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,"<f:convertDateTime", is possible to use it only with data value or also of string.
I have tried so, but date remain as is, without nobody formatting.
...
<h:inputText id="data" value="#{user.data}">
<f:convertDateTime dateStyle="full" pattern="yyyy-MM-dd"/>
</h:inputText>...
#{user.data} return a string.

Do you know use it?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic