I am querying date using QuerySpec on the basis of CREATE_TIMESTAMP
,following is my piece of code, compiler says CREATE_TIMESTAMP
is a Timestamp
,whereas day
is String . I have tried many work around but didn't workout
Date date=new Date();
SimpleDateFormat format=new SimpleDateFormat("yyyy-MM-dd");
String day=format.format(date);
qs.appendWhere(new SearchCondition(QueueEntry.class,
QueueEntry.CREATE_TIMESTAMP,
SearchCondition.LIKE,day),
new int[] {0,1});