jQuery in Action, 2nd edition*
The moose likes Beginning Java and the fly likes I have a problem with getDate() ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "I have a problem with getDate() ?" Watch "I have a problem with getDate() ?" New topic

I have a problem with getDate() ?

Elahe Shafie
Ranch Hand

Joined: Dec 12, 2001
Posts: 291
Dear Friends,
fixedDate is Date type how can I get this field is this correct?"fixedDate = rs.getDate(3);"

Corey McGlone
Ranch Hand

Joined: Dec 20, 2001
Posts: 3271
Well, you might have a little more luch asking questions like this in the JDBC forum, but this looks fine to me. Are you having problems with this? As far as I can tell, the code you wrote should work.
If you're looking for more info on JDBC, check out this tutorial.
Hope that helps,

SCJP Tipline, etc.
Elahe Shafie
Ranch Hand

Joined: Dec 12, 2001
Posts: 291
So as you said it is correct I can ask my next question I want to read data from one trable to another and this time both table are EXACTLY the same do you have any idea why it is not working and gives me this error?
Many thanks,
java.lang.NoClassDefFoundError: WEB-INF/classes/com/srs/bugtrack/Rdate (wrong name: com/srs/bugtrack/Rdate)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
Exception in thread "main"
subject: I have a problem with getDate() ?
Similar Threads
Auto_Increment Primary Key
How to write to new table?
What is wrong with this Update Query!!!!
How can I see my record?
How can I solve IllegalArgumentException