debug date formatting