Fix date format issue in query string.