adapt for xforms
date filtering