CREATE TABLE table_name_77 (date VARCHAR(255), opponent VARCHAR(255), record VARCHAR(255))
What was the date of the game with the Kansas City Royals when the Blue Jays record was 18-12?
    
SQL: SELECT date FROM table_name_77 WHERE opponent = "royals" AND record = "18-12"