adjusted date logic and added current date to output string