File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Android Security Essentials Live Lessons this week in the Android 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
 
It is sorta covered in the JavaRanch Style Guide.
 
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