Merge files based on date.