This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
 
 
subject: How can convert DATETIME type to JAVA date type?
 
Similar Threads
Date format
Date Format
Convert Datetype from Access database to Java 'DATETIME'
About convert datetype 'DATETIME' From SQL (access 2000)into JAVA
Date format