bug fixes for date printout