When I did my PhD (in English literature), the style guide we adhered to insisted on ‘nineteenth-century novels’ (hyphenated, lower case when used adjectivally) but ‘novels in the Nineteenth Century’ (unhyphenated, upper case when used nominally).