aspose file tools*
The moose likes JDBC and the fly likes How can I retrieve date using rs.getDate() ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "How can I retrieve date using rs.getDate() ?" Watch "How can I retrieve date using rs.getDate() ?" New topic
Author

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

Shounak Kundu
Ranch Hand

Joined: Jul 29, 2010
Posts: 60

Hi,

here's my code ..

But it is not showing any date value.

How can I show that ?



Shounak
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Maybe because of the extra space after JOBVALIDUPTO.
Change rs.getDate("JOBVALIDUPTO ") to rs.getDate("JOBVALIDUPTO")

[My Blog]
All roads lead to JavaRanch
Shounak Kundu
Ranch Hand

Joined: Jul 29, 2010
Posts: 60

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How can I retrieve date using rs.getDate() ?