3 Replies Latest reply on Apr 2, 2009 5:39 AM by Ilya Shaikovsky

    rich:calendar - right datePattern for year 2xxx

    Ingo Dietz Newbie

      Hi,

      im using a calender with manual input enable, which is working fine.

      <rich:calendar value="#{fooBean.fooDate}"
       datePattern="dd.MM.yyyy"
       bypassUpdates="true"
       enableManualInput="true"/>


      On manual input like 01.04.09 the value is converted to 01.04.0009 (leading ZERO in the year), but it should be 01.04.2009 (leading 2 for year 2009).

      Could anybody give an advise. please.
      E.g. to use another datePattern.

      Many thanks