aspose file tools*
The moose likes Ranch Office and the fly likes How can convert DATETIME type to JAVA date type? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » This Site » Ranch Office
Bookmark "How can convert DATETIME type to JAVA date type?" Watch "How can convert DATETIME type to JAVA date type?" New topic
Author

How can convert DATETIME type to JAVA date type?

Tracy Lee
Greenhorn

Joined: May 08, 2001
Posts: 5
when I tried to convert the data in a MS Access Database, which I create in Access 2000, all number and string worked fine. But there is a table containning a date type --- 'Date/time' with short date form e.g. today 01-05-08(yy-mm-dd). when compiling it, shows DATATIME type. Java.sql.resultSet has got no method to convert it ( relevant are getDate, getTime, getTimeStamp).
Could anybody Help. I would appropriate it.
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
Why not try one of the other forums. As it says at the top of this page: "This forum is intended for questions and comments about this web site, www.javaranch.com. It is not for questions about the Java language - that's what all the other forums are for."


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Tracy Lee
Greenhorn

Joined: May 08, 2001
Posts: 5
Sorry
I reliased I was on wrong place too later
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How can convert DATETIME type to JAVA date type?