getCurrentDate function added