add currentDate function