Format dates before filtering reports.

Should fix #1.