Using Date objects to avoid errors with different date formats