A question about Date
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Meng_ZhanChao
Posted On:   Wednesday, November 14, 2001 08:29 PM

I use
Calendar calendar = new GregorianCalendar(2001, 0, 1);
java.sql.Date date = new java.sql.Date(calendar.getTime().getTime());
to get a Date type,but when I use SQL to insert it into a Date type field ,it said that that was wrong.
How can I insert a Date into a Date type field.
Thx

Re: A question about Date

Posted By:   Bozidar_Dangubic  
Posted On:   Thursday, November 15, 2001 06:22 AM

what is the exception you are getting? and how are you trying to store date?

Re: A question about Date

Posted By:   archana_goud  
Posted On:   Wednesday, November 14, 2001 09:17 PM

In the insert command change the format of the Date .The new format should be in the way Oracle Stores Date in the database.
About | Sitemap | Contact