0 Replies Latest reply: Sep 17, 2013 12:36 PM by 964914 RSS

    <tr:inputDate converts date from 1/1/13 to 1/1/0013

    964914

      I use apache myfaces  trinidad 2.0.2 api. I have a xhtml page and has the below code. When I enter the below as 1/1/13 and press tab, it converts the date to 1/1/0013. I need to convert it to 1/1/2013. Any idea on how to resolve this. I tried to give convertor with default style as shortish, but it still gave 0013 for year instead of 2013.

      <tr:inputDate id="mydate"

        value="#{bean.mydate}">

         </tr:inputDate>

       

      Thanks.