Added functionality to filter history records based on their date.