made printDateList more succinct