gdv82
asked on
jsf inputCalendar
I have one bean form in which i m setting birthday = 47/02/01 (year = 1947)
in database i m saving it as mm/dd/yyyy hh:mm:ss
then when i click next birthday appears in the textbox and there i m setting calendar like :
<t:inputCalendar value="#{userBean.user.bir
<f:convertDateTime type="date" dateStyle="short" />
</t:inputCalendar>
but thing is tht whenever i click on each date chooser in turn then the year comes up as 2047 for the birth date and not the 1947.
Can you not set it as 1947/02/01 explicitly?
ASKER
i need short date format and moreover in the database it is saving the correct year value only.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Probably its getting saved as 2047 and not 1947.