2 Replies Latest reply on Oct 13, 2009 2:40 PM by salski22

    f:convertDateTime -- STRANGE PROBLEM

    salski22

      Hi all


      I have strange problem with displaying date.


      I have private Date startDate in my entity. lets say date in database is 09/10/13


      when I will use


      <h:outputText value="#{e.startDate}" >
      </h:outputText>



      that's fine I will get 10/13/2009
      but I want my date with pattern dd-MM-yyyy so I used


      <h:outputText value="#{e.startDate}" >
               <f:convertDateTime pattern="dd-MM-yyyy"/>
       </h:outputText>



      and I get date 12-10-2009 it one day before. WHY IT IS LIKE THAT?????