if ("=".equals(operatorString)) {
// Date equals not supported by CQL, so we use the DURING operator instead:
operatorString = "DURING";
Date date1 = (Date) value;
Date date2 = new Date(date1.getTime() + 86400000); // total milliseconds in a day
valueString = format.format(date1) + "/" + format.format(date2);
} else {
// Simply format the date:
valueString = format.format((Date) value);
}
}