Fix a syntax error in the date format add function.