Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JDBC and Relational Databases 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 and Relational Databases
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: 14688
    
  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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: How can I retrieve date using rs.getDate() ?
 
jQuery in Action, 3rd edition