Properly format date params.