Link to home
Start Free TrialLog in
Avatar of gdv82
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.birthDate}" renderAsPopup="true" id="birthDate" style="width:25em;" >
                                      <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.
Avatar of Mayank S
Mayank S
Flag of India image

>> birthday = 47/02/01 (year = 1947)

Probably its getting saved as 2047 and not 1947.
Can you not set it as 1947/02/01 explicitly?
Avatar of gdv82
gdv82

ASKER


i need short date format and moreover in the database it is saving the correct year value only.
ASKER CERTIFIED SOLUTION
Avatar of Mayank S
Mayank S
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial