added function to get today's date in Date format