Added datetime filter to records