[jboss-user] [JBoss Seam] - Re: Date Convert Error
kaviarasu
do-not-reply at jboss.com
Tue Jul 3 10:27:46 EDT 2007
hi im using the
following code to insert date into oracle 10 database. i want the format to be saved as 11-jun1983.
and i pasted the codings
can you suggest is this is the correct format
----------------------------------------------
public Date getTdate() {
return this.tdate;
}
public void setTdate(Date tdate) {
this.tdate = new java.sql.Date(tdate.getTime());
}
-----------------------------------------------------
<h:inputText value="#{user1.tdate}">
<f:convertDateTime pattern="MM/dd/yyyy"/>
</h:inputText>
im getting the following error when i enter the code
Cannot convert 11/6/83 5:30 AM of type class java.util.Date to class java.sql.Date
thank you
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059995#4059995
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059995
More information about the jboss-user
mailing list