fix date formats across the application