Simple program that will take a DAT which has the bates and a date field (dateSort), convert that date value to yyyymmdd and then rename the corresponding file to datevalue-bates, so that it chron sorts.