Validate date in files