5 Replies Latest reply on Nov 27, 2008 5:26 AM by Ilya Shaikovsky

    Handling 2 digit year input

    Andrew Elegante Newbie

      Hi,

      I'm using Richfaces 3.1.4 and I've got my calendar's setup with manual input enabled and my date pattern setup as follows:

      datePattern="MM/dd/yyyy"


      I've got a problem with people entering dates like 01/01/50 which then becomes 01/01/0050 when it really should be 01/01/1950. Is there a way to either force an error if they only have a 2 digit year or set the calendar up to convert the date to a 1900 relative year?

      Thanks,

      Drew