Hi,
i want to fetch modified object list for particular date or today.
i tried to use below Query, but it wont give me results.
please point out my mistake in below query.
any help will be grate.
=================
DateFormat dateFormat1 = new SimpleDateFormat("dd/MM/yyyy");
java.util.Date date1 = dateFormat1.parse("12/01/2015");
long time1 = date1.getTime();
Timestamp ts1= new Timestamp(time1);
criteria.appendWhere(new SearchCondition(WTPart.class,"thePersistInfo.modifyStamp", SearchCondition.EQUAL, ts1), new int[] {0});
criteria.appendAnd();
criteria.appendWhere(new SearchCondition(WTPart.class, "iterationInfo.latest", "TRUE"));
QueryResult qr= PersistenceHelper.manager.find(criteria);
System.out.println("Query Size = "+qr.size());
=======================
Regards,
Vivek