move SimpleDateFormat into buildTable