Added logging to dateTime