a short date-checking script