CREATE TABLE table_name_17 (date VARCHAR, opponent VARCHAR, result VARCHAR, attendance VARCHAR)

On what date was the opponent Ayr United, the result 1 0, and the attendance more than 668?
SELECT date FROM table_name_17 WHERE result = "1–0" AND attendance > 668 AND opponent = "ayr united"
SELECT "date" FROM "table_name_17" WHERE "1–0" = "result" AND "attendance" > 668 AND "ayr united" = "opponent"