improves date formatting