Other contributors have said "Book and year in an essay?" is the same question as "What is the correct way to state the name of a book in an essay?" If you believe that these are not asking the same thing and should be answered differently, click here
What is the correct way to state the name of a book in an essay?
That depends on the sort of essay which one is writing. However, per the Chicago Manual of Style a book can either be underlined or in italics as long as one is consistent in the usage in an essay....