I am using a bib file that looks something like this (saved as ref.bib):
@article{key1,
author = {Joe Smith},
journal={A journal},
title = {An article},
year = {2017}}
@article{key2,
author = {Joe Smith},
title = {A second article},
journal = {},
year = {2017},
pubstate={Draft}}
With a latex file:
\documentclass{article}
\usepackage[style=authoryear]{biblatex}
\addbibresource{ref.bib}
\begin{document}
\section{ONE}
\begin{refsection}
\nocite{key1}
\printbibliography{}
\end{refsection}
\section{TWO}
\begin{refsection}
\nocite{key2}
\printbibliography{}
\end{refsection}
\end{document}
But I would like to omit the year from the second bibliography since it is an unpublished draft. How would I go about doing this?

@unpublished, then year can be omitted. – TeXnician Aug 14 '17 at 16:57key2is definitely not an@articleif it has nojournaland has not yet been published. There is@unpublished, but also@onlineif you got the work from a pre-print server. – moewe Aug 14 '17 at 17:00(n.d.), which I don't want. @moewe - yes, it is for a CV – Alex Aug 14 '17 at 17:02