add format to table and date field