Relativity Media has set an Oct. 18 domestic release date for Joseph Gordon-Levitt’s directorial debut “Don Jon.”

The company acquired the rights to the comedy at Sundance, three days after its premiere as “Don Jon’s Addiction,” paying $4 million with a commitment to spent $25 million for prints and advertising.

Review: ‘Don Jon’s Addiction’

Gordon-Levitt stars as a porn-obsessed New Jersey bartender whose addiction stands in the way of having a meaningful relationship with Scarlett Johansson’s character. Julianne Moore co-stars as a classmate who teaches him about the importance of intimacy.

“Don Jon” will open against Warner Bros.’ fantasy “Seventh Son,” The Weinstein Co.’s drama “The Butler” and Sony-MGM’s reboot of “Carrie.”