[Tex/LaTex] How to print only year (no day/month) with Biblatex

biblatex

I would like to have Biblatex print only the year of a publication in the bibliography. Currently it shows the year, month and day.

The "date" option (e.g. date=iso8601) can't do that.

Best Answer

In analogy to Disable month in biblatex bibliography? you can just disable the month and day fields with the commands

\AtEveryBibitem{\clearfield{month}}
\AtEveryBibitem{\clearfield{day}}

For a short moment there came to my mind that there could be a caveat with the urldate field that declares when a URL has been checked, but biblatex even takes care of this. The urldate is still printed as full date. Compare the MWE and its output below:

\begin{filecontents}{test.bib}
@BOOK{test,
author= {A. Author},
title = {A Title for a Book},
date = {2012-10-08}
},
@ONLINE{test2,
author = {A. Author},
title = {Some title},
url = {http://example.com},
urldate = {2013-01-08}
}
\end{filecontents}

\documentclass{article}
\usepackage{biblatex}
\addbibresource{test.bib}

\AtEveryBibitem{\clearfield{month}}
\AtEveryBibitem{\clearfield{day}}

\begin{document}
\nocite{*}

\printbibliography
\end{document}

enter image description here

Is this what you intend to do? If not, please provide a MWE to work with.