Permit report filtering by dates.
(cherry picked from commit c8e4197c5acece3b382d8137ae14ec4bd20f3645)