• Post Reply Bookmark Topic Watch Topic
  • New Topic

How can I retrieve date using rs.getDate() ?

 
Shounak Kundu
Ranch Hand
Posts: 60
IBM DB2 Eclipse IDE Fedora
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

here's my code ..

But it is not showing any date value.

How can I show that ?


 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe because of the extra space after JOBVALIDUPTO.
Change rs.getDate("JOBVALIDUPTO ") to rs.getDate("JOBVALIDUPTO")
 
Shounak Kundu
Ranch Hand
Posts: 60
IBM DB2 Eclipse IDE Fedora
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh, my .... what a silly typing error. Thanks , the problem is solved....

Next time onwards, I will try to be a little more cautious while typing.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!