How can I specify a custom date format in biblatex for eventdate
in case a range of several days or weeks is specified?
Using \thefield{eventday}
for example only returns the first day of the range, but not the last. I tried it that way:
\documentclass{article}
\usepackage[style=numeric,backend=biber]{biblatex}
\DeclareFieldFormat{eventdate}{%
\thefield{eventyear}%
\space
\mkbibmonth{\thefield{eventmonth}}%
\space%
\thefield{eventday}}
\begin{filecontents*}{database.bib}
@inproceedings{Baker2011,
author = {Baker, Christopher R. and Dolan, John M. and Wang, Shige and Litkouhi, Bakhtiar B.},
bookpagination = {page},
booktitle = {2011 IEEE Int. Conf. Robotics and Automation},
doi = {10.1109/ICRA.2011.5980355},
eventdate = {2011-05-09/2011-05-13},
eventtitle = {2011 IEEE International Conference on Robotics and Automation (ICRA 2011)},
isbn = {978-1-61284-386-5},
keywords = {software architecture},
pages = {6071--6077},
publisher = {IEEE},
location = {Piscataway, NJ},
title = {Toward adaptation and reuse of advanced robotic software},
venue = {Shanghai, China},
year = {2011}
}
\end{filecontents*}
\bibliography{database}
\begin{document}
\nocite{*}
\printbibliography{}
\end{document}
What I need is an event date in the format 2010 Aug 10-12.
Best Answer
Try the following redefinition of date internals (note that you will have to wrap it in
\DefineBibliographyExtras{<doclang>}
). This changes the setting forcomp
dates. So it will alter more than just youreventdate
s. Most dates arecomp
by default, notable exceptions beinglabeldate=year
andurldate=short
.