fixed date comparison for choosing earliest file.