* @see com.projity.algorithm.DoubleValue#getValue()
*/
public long getDate() {
root.buildReverseQuery(this);
Query query = Query.getInstance();
DateAtValueFunctor dateAtValue = DateAtValueFunctor.getInstance(valueToFind, AssignmentFieldClosureCollection.getInstance(fieldSet));
IntervalGenerator interval = null;
if (!groupBySet.isEmpty())
interval = IntervalGeneratorSet.getInstance(groupBySet);
query.selectFrom(selectFromSet)
.groupBy(interval)
.action(dateAtValue)
.execute();
return dateAtValue.getDate();
}