• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

I have a problem with getDate() ?

 
Ranch Hand
Posts: 291
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Friends,
fixedDate is Date type how can I get this field is this correct?"fixedDate = rs.getDate(3);"
 
Ranch Hand
Posts: 3271
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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,
Corey
 
Elahe Shafie
Ranch Hand
Posts: 291
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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,
Elahe
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"
---------------------
 
reply
    Bookmark Topic Watch Topic
  • New Topic