aspose 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 Java 8 in Action this week in the Java 8 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
 
 
subject: retrieving date field from access database using query
 
Similar Threads
Formatting the String
change sql date to simpledateformat (mm/dd/yyyy)
Formatting Dates
retrieving date field from access database using query
jdbc select query problem on selecting MS-ACCESS date