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

    f:convertDateTime -- STRANGE PROBLEM

    Piotr Salski Newbie

      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}" >

      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"/>

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