code cleanup, better date & datetime formatting in excel export