Added a timeedt to date function