Fix date query string format