Same example but execute displayDate() function