added filterbydate method.