Filter for displaying date ranges. Fix for date changing when switching between periods.