if( operand instanceof SQLDate)
return (SQLDate) operand.cloneValue(false);
if( operand instanceof SQLTimestamp)
{
DateTimeDataValue retVal = new SQLDate();
retVal.setValue( operand);
return retVal;
}
if( operand instanceof NumberDataValue)
{
int daysSinceEpoch = operand.getInt();