Is it possible to apply conditions with date fields?