Sorry, but spent several hours on this... and 30+ minutes on the mailing list archives looking...
I am using the tdk 2.1 I have a column defined as a date in the schema file. When I add the java date object to the criteria object, it generates sql that does not compare to the date that is stored in the database. So I never get records back from my select statement. I also tried timestamp, that did not work either. Sorry I am slim on details, but my files are at home. I was hoping to get an example of how to do a select on a table with the date field in the criteria... I have a column with a date. Closest precision is day of the month. Time is not important. String mydatestring = "2002-04-03"; String format = "yyyy-MM-dd"; SimpleDateFormat sdf = new SimpleDateFormat(format); Date mydate = sdf.parse(mydatestring); criteria.add(SamplePeer.DATE_COL,mydate); Thanks. Getting this out there now so I don't have to hang over the weekend! --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
