date format updated and output to log file