insert the date at the displayData function