Question: What year was the romantic comedy that Josh Hartnett stars in released?
Sentence (from "Josh Hartnett"): Hartnett had starring roles in the war film "Pearl Harbor", the drama "O", the war film "Black Hawk Down", the romantic comedy "40 Days and 40 Nights", the crime thriller Lucky Number Slevin (2006), and other films.
Relevant evidence: Yes