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 JDBC and the fly likes retrieving date field from access database using query 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 » Databases » JDBC
Bookmark "retrieving date field from access database using query" Watch "retrieving date field from access database using query" New topic
Author

retrieving date field from access database using query

siva sankar
Ranch Hand

Joined: Jul 13, 2006
Posts: 68
Hi all,
Am unable to retrieve the users information according to the datewise through the query from access database. The datefield datatype is declared as 'shortdate'. The error is showing as "datetype mismatch criteria".
eg: select name,ddate,department from tablename where ddate between '2006-12-01' and '2006-12-31';
I tried in all date formats like mm/dd/yyyy,dd/mm/yyyy and so on.

Thanks in advance,
Siva
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: retrieving date field from access database using query
 
Similar Threads
change sql date to simpledateformat (mm/dd/yyyy)
Formatting the String
retrieving date field from access database using query
jdbc select query problem on selecting MS-ACCESS date
Formatting Dates