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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to