sending filtering dates in proper format