add showDate function