I have a bibliographic entry with no date. I would like this to be printed both in the citation (i.e. in the text) and in the references with "n.d.", otherwise it shouldn't be different from a regular entry.
In the example below, I would like the citations to be
Lennon (n.d.); Lennon (1972)
and the references to be
Lennon, John (n.d.). Peace on earth.
Lennon, John (1972). More peace on earth.
\documentclass{article}
\usepackage{csquotes,filecontents}
\usepackage[style=authoryear,dashed=false]{biblatex}
\begin{filecontents}{\jobname.bib}
@BOOK{lennon,
AUTHOR = "John Lennon",
TITLE = "Peace on earth"}
@BOOK{lennon1972,
AUTHOR = "John Lennon",
TITLE = "More peace on earth",
YEAR = "1972"}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\textcites{lennon}{lennon1972}.
\printbibliography
\end{document}


biblatexnow also addsn.d.to the entry type@ONLINE, which is not suitable, since the@ONLINEentry has a fieldURLDATEfor this purpose. I assume there's an easy fix for this (one that skips@ONLINEentries or one that doesn't addn.d.if the entry has a field forURLDATE), but I wouldn't know how to do it. – Sverre Mar 07 '13 at 18:43labelyearhas a few fallback values ifyearisn't defined. For the first approach you can just base the test always onlabelyear. Accounting for fallbacks in second approach gets messy. – Audrey Mar 07 '13 at 23:40