I am trying to use biblatex
to format the reference to print the urldate in long form (Australian order) to match my university's style guide. I modified all the other fields using biblatex.cfg
I want the visited date to print the full date
Soto, S. 2013, Ubuntu documentation Install CD Customization, ed. by
Community Help Wiki last edited 27 February 2013, visited on 25
September 2015, url:
https://help.ubuntu.com/community/InstallCDCustomization.
My biblatex.cfg
is
\ProvidesFile{biblatex.cfg}
\renewbibmacro*{date+extrayear}{%
\iffieldundef{year}
{}
{\printtext{%
\addperiod\space\printfield{labelyear}%
\printfield{extrayear}}}}
\renewcommand*{\newunitpunct}{\addcomma\space}
\DeclareFieldFormat{urldate}{\bibstring{urlseen}\space{#1}\addcomma}
\renewbibmacro*{url+urldate}{%
\iffieldundef{urlyear}
{}
{\setunit*{\addspace}%
\usebibmacro{urldate}}
\usebibmacro{url}}
\endinput
In my MWE files I have the following fields set
\documentclass{article}
\usepackage[style=authoryear, natbib=true, backend=biber, dateabbrev=false]{biblatex}
\begin{filecontents}{references.bib}
@Online{ubuntu-preseed-dvd,
Title = {Ubuntu documentation Install CD Customization},
Author = {Soto, S.},
Date = {2013-02-27},
Editor = {Community Help Wiki last edited 27 February 2013},
Url = {https://help.ubuntu.com/community/InstallCDCustomization},
Urldate = {2015-09-25}
}
\end{filecontents}
\addbibresource{references.bib}
\begin{document}
\cite{ubuntu-preseed-dvd}.
\printbibliography
\end{document}
Where the date is printed as 09/25/2015.
How can I get biblatex
to print as 25 September 2015?
Best Answer
Simply use
urldate=long
to get the expanded date format for URL dates, the default is the more compressedshort
you see at the moment.If you want the months spelled out, you need
dateabbrev=false
as well (as commented by Florian), that option is independent of the genericabbreviate
option that controls whether bibstrings are printed in full/long or short form.Note that this example uses British and thus easily has the date order
dd. mm. yyyy
. See http://tex.stackexchange.com/q/129170/35864 if you want to stick toenglish
oramerican
or American spelling.