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
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Reply 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: 65
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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: retrieving date field from access database using query
 
Similar Threads
Formatting Dates
Formatting the String
change sql date to simpledateformat (mm/dd/yyyy)
jdbc select query problem on selecting MS-ACCESS date
retrieving date field from access database using query